docs: 项目文档、设计图、工具、协议模块、部署说明
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
.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
|
||||
Reference in New Issue
Block a user