mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-18 03:33:59 -05:00
Update railway.json configuratUpdate railway.json configuration for FastAPI deployment via NIXPACKSion for deployment
This commit is contained in:
10
railway.json
10
railway.json
@@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user