diff --git a/deploy/deploy.py b/deploy/deploy.py index 8323421..e7ca477 100755 --- a/deploy/deploy.py +++ b/deploy/deploy.py @@ -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']}")