部署优化

This commit is contained in:
wchino
2026-06-13 22:16:14 +08:00
parent 21dd9957f0
commit 73a94e6be3
28 changed files with 899 additions and 129 deletions

View File

@@ -387,7 +387,8 @@ cd /www/wwwroot/thebet365
./scripts/deploy-update.sh --pull
```
- 更新脚本会先备份数据库,再构建新镜像、执行 Prisma 迁移替换容器
- 更新脚本会先备份数据库与 uploads,再构建新镜像、执行 Prisma 迁移替换容器并等待健康检查
- 使用离线镜像包时推荐 `./scripts/deploy-update.sh --images thebet365-images-<tag>.tar --tag <tag>`,发布状态会记录到 `.deploy/current-release.env`
- **不要**把 `.env.docker` 提交到 Git服务器上单独保留
- `release/*.zip` 为旧打包方式Git 同步后不必再生成上传