Update railway.json configuratUpdate railway.json configuration for FastAPI deployment via NIXPACKSion for deployment

This commit is contained in:
Alexa Amundson
2025-11-16 21:22:20 -06:00
committed by GitHub
parent a59e0113ee
commit 15252a3c49

View File

@@ -1,13 +1,11 @@
{ {
"$schema": "https://railway.app/railway.schema.json", "$schema": "https://railway.app/railway.schema.json",
"build": { "build": {
"builder": "DOCKERFILE", "builder": "NIXPACKS"
"dockerfilePath": "backend/Dockerfile"
}, },
"deploy": { "deploy": {
"numReplicas": 1, "startCommand": "uvicorn app.main:app --host 0.0.0.0 --port $PORT",
"sleepApplication": false, "healthcheckPath": "/health",
"restartPolicyType": "ON_FAILURE", "watchPatterns": ["backend/**", "app/**", "*.py"]
"restartPolicyMaxRetries": 10
} }
} }