fix(deploy): health_monitor Docker 适配与巡检第三轮修补

Docker 生产用 docker restart;读 .env.prod 端口与容器 Telegram;已归档跳过全量热同步。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nexus Deploy
2026-06-06 22:25:27 +08:00
parent 954bdbd972
commit 61b8d7d419
6 changed files with 195 additions and 66 deletions
+2 -2
View File
@@ -766,8 +766,8 @@ def _configure_guardian(install_dir: str, api_port: str) -> list[str]:
content = read_utf8_text(health_sh)
import re
content = re.sub(
r'INSTALL_DIR="[^"]*"',
f'INSTALL_DIR="{install_dir}"',
r'DEPLOY_DIR="\$\{NEXUS_DEPLOY_DIR:-[^"]*\}"',
f'DEPLOY_DIR="${{NEXUS_DEPLOY_DIR:-{install_dir}}}"',
content,
)
write_utf8_lf(health_sh, content)