Files
jackyu66gitandCursor 2fb1dfee14 chore: seal Design Vision v1 and monorepo scaffold
Archive the differentiated YuXinGu product docs, AI engineering system,
design contract, and Go/Vue scaffold. Next execution prioritizes Cece-parity
over early innovation (see .ai/product/STRATEGY.md).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 16:00:44 +08:00

623 B
Raw Permalink Blame History

09 Docker / CI/CD 规范

本地

docker compose -f deploy/docker-compose.yml up -d

服务:postgres(必备)、可选 api 镜像。

环境变量

  • APP_ENVdev | staging | prod
  • DATABASE_URL
  • HTTP_ADDR(默认 :8080
  • JWT_SECRET / 支付密钥等仅环境注入

禁止把 .env 提交进 git(示例用 .env.example)。

CI 门禁(目标)

  1. go test ./...api
  2. npm run builduser-h5
  3. lint(后置可加 golangci-lint / eslint

镜像

  • API 多阶段构建,最终镜像仅含二进制。
  • 标签:yuxingu-api:<git-sha>