.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
