Spaces:
Running
Running
MicroFunnel commited on
Commit ·
1b99028
1
Parent(s): cd61bf7
Fix: Add nixpacks.toml for Railway deployment
Browse files- backend/nixpacks.toml +11 -0
- backend/railway.json +2 -1
backend/nixpacks.toml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[phases.setup]
|
| 2 |
+
nixPkgs = ["python39", "postgresql"]
|
| 3 |
+
|
| 4 |
+
[phases.install]
|
| 5 |
+
cmds = ["pip install -r requirements.txt"]
|
| 6 |
+
|
| 7 |
+
[phases.build]
|
| 8 |
+
cmds = ["echo 'Build phase complete'"]
|
| 9 |
+
|
| 10 |
+
[start]
|
| 11 |
+
cmd = "uvicorn app.main:app --host 0.0.0.0 --port $PORT"
|
backend/railway.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"$schema": "https://railway.app/railway.schema.json",
|
| 3 |
"build": {
|
| 4 |
-
"builder": "NIXPACKS"
|
|
|
|
| 5 |
},
|
| 6 |
"deploy": {
|
| 7 |
"startCommand": "uvicorn app.main:app --host 0.0.0.0 --port $PORT",
|
|
|
|
| 1 |
{
|
| 2 |
"$schema": "https://railway.app/railway.schema.json",
|
| 3 |
"build": {
|
| 4 |
+
"builder": "NIXPACKS",
|
| 5 |
+
"nixpacksConfigPath": "nixpacks.toml"
|
| 6 |
},
|
| 7 |
"deploy": {
|
| 8 |
"startCommand": "uvicorn app.main:app --host 0.0.0.0 --port $PORT",
|