fix(rehearsal): probe the port the bundle actually publishes
The health check polled 127.0.0.1:18080, but deploy/compose/docker-compose.yml publishes "8080:8080" and deploy/airgapped/install.sh does not rewrite ports. Nothing was ever listening on 18080, so the rehearsal always ended in "platform never became healthy" — regardless of whether the install worked. Visible now only because the earlier failures (no cargo, compose v1, project collision) all stopped the script before it got this far. Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
e7d2fc9696
commit
875ff948f8
@@ -100,7 +100,11 @@ $COMPOSE -p "$PROJECT" --project-directory "$CLAWMATES_HOME" up -d --no-build
|
|||||||
|
|
||||||
echo "==> Waiting for the platform"
|
echo "==> Waiting for the platform"
|
||||||
for _ in $(seq 1 60); do
|
for _ in $(seq 1 60); do
|
||||||
if curl -fsS http://127.0.0.1:18080/healthz >/dev/null 2>&1; then
|
# 8080, not 18080: deploy/compose/docker-compose.yml publishes "8080:8080"
|
||||||
|
# and deploy/airgapped/install.sh does not rewrite ports, so the old probe
|
||||||
|
# could never answer — the rehearsal always timed out at "platform never
|
||||||
|
# became healthy" no matter how well the install went.
|
||||||
|
if curl -fsS http://127.0.0.1:8080/healthz >/dev/null 2>&1; then
|
||||||
echo "==> Server is healthy"
|
echo "==> Server is healthy"
|
||||||
if curl -fsS http://127.0.0.1:3000/login | grep -q clawmates; then
|
if curl -fsS http://127.0.0.1:3000/login | grep -q clawmates; then
|
||||||
echo "==> Frontend serves the login page"
|
echo "==> Frontend serves the login page"
|
||||||
|
|||||||
Reference in New Issue
Block a user