更新 Docker 部署逻辑,调整端口配置以支持新的环境设置,确保与当前活动状态一致性。
This commit is contained in:
BIN
soul-api/__pycache__/devloy.cpython-311.pyc
Normal file
BIN
soul-api/__pycache__/devloy.cpython-311.pyc
Normal file
Binary file not shown.
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user