更新 Docker 部署逻辑,调整端口配置以支持新的环境设置,确保与当前活动状态一致性。

This commit is contained in:
Alex-larget
2026-03-20 11:09:44 +08:00
parent ecc4ded052
commit 879314fce6
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -570,7 +570,7 @@ def upload_and_deploy_docker(cfg, image_tar_path, include_env=True, deploy_metho
current_active = (f.read().decode("utf-8", errors="replace") or "blue").strip() or "blue"
except Exception:
pass
new_port = 8082 if current_active == "blue" else 8081
new_port = 9002 if current_active == "blue" else 9001
sftp.close()