mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 07:19:35 +00:00
Railway healthcheck was failing because:
1. healthcheckPath was /api/v1/health but endpoint is /health
2. CMD used hardcoded port 8000, Railway injects $PORT dynamically
3. ${PORT:-8000} doesn't expand without shell
Fix:
- railway.toml: healthcheckPath = "/health"
- start.sh: shell wrapper that expands $PORT properly
- Dockerfile CMD: ["./start.sh"] instead of direct uvicorn
- HEALTHCHECK: uses /health (matches root endpoint)
- start-period increased to 90s for cold start
https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
9 lines
162 B
TOML
9 lines
162 B
TOML
[build]
|
|
dockerfilePath = "Dockerfile"
|
|
|
|
[deploy]
|
|
healthcheckPath = "/health"
|
|
healthcheckTimeout = 120
|
|
restartPolicyType = "ON_FAILURE"
|
|
restartPolicyMaxRetries = 3
|