Deploy: podsumowanie deployu swietluje URL-e bez loginu SSH z SSH_TARGET

This commit is contained in:
Tilumca
2026-10-14 05:07:09 +02:00
parent d5c2c20102
commit 0b9e5caea8

View File

@@ -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']}")