Spaces:
Paused

somratpro Claude Sonnet 4.6 commited on
Commit
79d2b7b
·
1 Parent(s): fbcca6e

fix: health endpoint always 200 so Docker HEALTHCHECK passes on startup

Browse files

/health was returning 503 when the Hermes gateway hadn't started yet.
Docker HEALTHCHECK uses curl -f which treats 503 as failure, so the
container stayed in "starting" state until the gateway was fully up
(~120s). Combined with start-period=180s, HF Space was stuck at
RUNNING_APP_STARTING indefinitely.

Fix: always return HTTP 200 from /health (gateway status in JSON body).
Reduce start-period to 30s since health server starts in ~2s.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

2 files changed +6 -2
Files changed (2)
Dockerfile+1-1
health-server.js+5-1