部署优化
This commit is contained in:
@@ -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 同步后不必再生成上传
|
||||
|
||||
|
||||
Reference in New Issue
Block a user