Spaces:
Sleeping
Sleeping
MicroFunnel commited on
Commit ·
4120435
1
Parent(s): 5b9f744
Fix: Move Railway config to root
Browse files- Procfile +1 -0
- nixpacks.toml +12 -0
- railway.json +12 -0
Procfile
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
web: cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT
|
nixpacks.toml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Railway Nixpacks Configuration
|
| 2 |
+
[phases.setup]
|
| 3 |
+
nixPkgs = ["python39", "postgresql"]
|
| 4 |
+
|
| 5 |
+
[phases.install]
|
| 6 |
+
cmds = ["cd backend && pip install -r requirements.txt"]
|
| 7 |
+
|
| 8 |
+
[phases.build]
|
| 9 |
+
cmds = ["echo 'Build phase complete'"]
|
| 10 |
+
|
| 11 |
+
[start]
|
| 12 |
+
cmd = "cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT"
|
railway.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://railway.app/railway.schema.json",
|
| 3 |
+
"build": {
|
| 4 |
+
"builder": "NIXPACKS",
|
| 5 |
+
"nixpacksConfigPath": "nixpacks.toml"
|
| 6 |
+
},
|
| 7 |
+
"deploy": {
|
| 8 |
+
"startCommand": "cd backend && uvicorn app.main:app --host 0.0.0.0 --port $PORT",
|
| 9 |
+
"restartPolicyType": "ON_FAILURE",
|
| 10 |
+
"restartPolicyMaxRetries": 10
|
| 11 |
+
}
|
| 12 |
+
}
|