收紧分支环境安装流程

This commit is contained in:
Cheng Zhou
2026-05-28 10:57:49 +08:00
parent 8611bd66f8
commit c9b677e96a
2 changed files with 56 additions and 65 deletions
@@ -113,7 +113,7 @@ bash scripts/install-ctms.sh release --base-url https://ctms.example.com
```text
--base-url <url> 健康检查使用的访问地址。dev/main 默认 http://127.0.0.1:8888release 必填或交互输入。
--yes 跳过交互确认,适合自动化执行。
--skip-build 跳过 docker compose up -d --build
--skip-build 跳过镜像构建,仍会执行 docker compose up -d。
--skip-migrate 跳过 alembic upgrade head。
```
@@ -121,10 +121,10 @@ bash scripts/install-ctms.sh release --base-url https://ctms.example.com
```text
1. 检查 docker、docker compose、openssl、curl。
2. 创建或更新 .env;已有 .env 会先备份为 .env.bak.<时间戳>
3. main/release 缺少 JWT RSA 私钥时自动生成,已有有效密钥保持不变
2. 检查 .env;已存在则保留不改,不存在则新建
3. 新建 main/release 的 .env 时自动生成 JWT RSA 私钥。
4. main/release 先执行 backend-init。
5. 执行 docker compose up -d --build。
5. 启动容器;默认执行 docker compose up -d --build--skip-build 时执行 docker compose up -d
6. 执行 docker compose run --rm backend python -m alembic upgrade head。
7. 检查容器状态、后端环境、/health、/api/v1/auth/login-key。
```