Add Railway deployment configuration
Browse files- Procfile +1 -0
- railway.json +14 -0
Procfile
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
web: uvicorn cascade.api.main:app --host 0.0.0.0 --port ${PORT:-8000}
|
railway.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://railway.app/railway.schema.json",
|
| 3 |
+
"build": {
|
| 4 |
+
"builder": "DOCKERFILE",
|
| 5 |
+
"dockerfilePath": "Dockerfile"
|
| 6 |
+
},
|
| 7 |
+
"deploy": {
|
| 8 |
+
"startCommand": "uvicorn cascade.api.main:app --host 0.0.0.0 --port $PORT",
|
| 9 |
+
"healthcheckPath": "/health",
|
| 10 |
+
"healthcheckTimeout": 30,
|
| 11 |
+
"restartPolicyType": "ON_FAILURE",
|
| 12 |
+
"restartPolicyMaxRetries": 3
|
| 13 |
+
}
|
| 14 |
+
}
|