fix: wait for services during deployment

This commit is contained in:
hectorzhao
2026-08-10 21:00:18 +08:00
parent 55aa054005
commit 0eb27e4ac0
4 changed files with 26 additions and 3 deletions
+2
View File
@@ -87,6 +87,8 @@ git reset --hard origin/main
bash tools/deploy/production-deploy.sh
```
部署脚本重启 Gateway、API 和 Nginx 后,会分别对 Gateway、API 健康接口执行最多 60 秒的逐秒就绪检查。Nest 初始化、活动通道恢复或生产数据量增加可能使 API 启动超过固定数秒;发布流程不得用单次固定延时把正常慢启动误判为失败。超过 60 秒仍不健康时才终止发布,并结合 systemd journal 和发布前数据库、源码、环境备份判断回滚方式。
## 账号和密钥
- 生产管理员账号写入 `/root/cmpp-platform-admin.txt`