Commit 1ce41ee
committed
fix: bind uvicorn to Railway's dynamic $PORT instead of hardcoded 8000
Railway assigns a dynamic $PORT and runs its healthcheck against it. The
Dockerfile hardcoded --port 8000, so every deploy after healthcheckPath was
added to railway.json failed with "service unavailable" on /health. #316 and
#318 have both been stuck for days; prod only survived on the pre-healthcheck
#293 image until that replica was knocked out. Bind ${PORT:-8000} (fallback for
local/compose) and make the internal healthcheck read the same port.1 parent 022ef14 commit 1ce41ee
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments