Files
EveryPublish/Makefile
T

23 lines
527 B
Makefile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
.PHONY: run build test tidy infra-up infra-down health
run: ## 本地运行服务
cd server && go run .
build: ## 编译二进制
cd server && go build -o ../dist/everypublish-server .
test: ## 单测
cd server && go test ./...
tidy: ## 整理依赖
cd server && go mod tidy
infra-up: ## 启动 MySQL/Redis(Docker)
docker compose -f server/docker-compose.yml up -d
infra-down: ## 停止 MySQL/Redis
docker compose -f server/docker-compose.yml down
health: ## 健康检查
curl -s http://127.0.0.1:8090/health