fix: replace legacy speedtest container during StreamScope cutover

This commit is contained in:
sascha 2026-08-08 18:31:51 +02:00
parent fafffe56c4
commit 45d4091051

2
app.py
View file

@ -1124,7 +1124,7 @@ os.chmod(env, 0o600)
if rc != 0:
_ssh(VPS_SSH, rollback, timeout=180)
raise RuntimeError(f"StreamScope build preflight failed: {err[-500:]}")
deploy = "cd /app-config/github/speedtest && docker compose up -d --remove-orphans"
deploy = "cd /app-config/github/speedtest && (docker rm -f speedtest >/dev/null 2>&1 || true) && docker compose up -d --remove-orphans"
rc, out, err = _ssh(VPS_SSH, deploy, timeout=180)
if rc != 0:
_ssh(VPS_SSH, rollback, timeout=180)