fix(deploy): 解决一键更新后nginx服务停止问题

- 添加检查nginx运行状态逻辑
- 在nginx未运行时自动启动服务
- 防止因--remove-orphans时序问题导致的nginx停止
- 确保部署完成后nginx正常运行
这个提交包含在:
徐勤民 2026-05-23 03:52:07 +08:00
父节点 bb23242cff
当前提交 de95af8e9f

查看文件

@ -487,6 +487,13 @@ for _svc in tenant-service im-service file-service update-service license-servic
fi
done
# 确保 nginx 在运行(一键更新时可能因 --remove-orphans 时序问题导致 nginx 被停掉)
if ! $_COMPOSE ps --services --filter status=running 2>/dev/null | grep -q "^nginx$"; then
info "nginx 未运行,正在启动 ..."
$_COMPOSE up -d --no-deps nginx
ok "nginx 已启动"
fi
# ---------------------------------------------------------------------------
# Step 7 — 等待 tenant-service 健康
# ---------------------------------------------------------------------------