61b8d7d419
Docker 生产用 docker restart;读 .env.prod 端口与容器 Telegram;已归档跳过全量热同步。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
nx 上帝菜单巡检第三轮 — health_monitor Docker 适配
| 项 | 内容 |
|---|---|
| 日期 | 2026-06-06 |
| 动机 | health_monitor.sh 仅 supervisorctl,Docker 生产无效;验收/热同步仍有误报路径 |
变更摘要
- health_monitor.sh:识别
nexus-prod-nexus容器 →docker restart;从docker/.env.prod读端口;从容器/app/.env读 Telegram;失败计数flock;重启冷却 300s。 - install.py:守护配置更新
DEPLOY_DIR(修复原INSTALL_DIR正则不匹配)。 - sync-install-wizard:已归档时跳过全部热同步(避免无意义 restart)。
- verify-1panel:已安装时
print_next_steps输出运维指引。 - install-nexus-fresh:已锁定安装时二次确认。
涉及文件
deploy/health_monitor.shserver/api/install.pydeploy/sync-install-wizard-to-container.shdeploy/verify-1panel-install-wizard.shdeploy/install-nexus-fresh.sh
验证
bash -n deploy/health_monitor.sh
NEXUS_DEPLOY_DIR=/opt/nexus bash deploy/health_monitor.sh # 健康时应 exit 0
bash deploy/verify-1panel-install-wizard.sh # 已安装全 PASS