ayushm98 commited on
Commit
b36261f
·
1 Parent(s): 666d4f6

Add Railway deployment configuration

Browse files
Files changed (2) hide show
  1. Procfile +1 -0
  2. 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
+ }