Deploy: podsumowanie deployu swietluje URL-e bez loginu SSH z SSH_TARGET
This commit is contained in:
@@ -350,7 +350,8 @@ def summarize(remote: Remote, remote_dir: str, cfg: dict[str, str]) -> None:
|
||||
step("docker compose ps + RELEASE")
|
||||
print(remote.exec(f"{compose(remote_dir)} ps 2>&1", timeout=60))
|
||||
print(remote.exec(f"cat ~/{remote_dir}/RELEASE", timeout=30))
|
||||
host = cfg.get("SSH_TARGET") or "?"
|
||||
# SSH_TARGET bywa "user@host" — w adresach przeglądarki liczy się tylko host
|
||||
host = (cfg.get("SSH_TARGET") or "?").split("@")[-1]
|
||||
print("Deploy zakonczony — FitOS (same-origin, API proxywane przez nginx frontow):")
|
||||
print(f" App: http://{host}:{cfg['APP_HOST_PORT']}")
|
||||
print(f" Admin: http://{host}:{cfg['ADMIN_HOST_PORT']}")
|
||||
|
||||
Reference in New Issue
Block a user