Spaces:
Sleeping

axeronis commited on
Commit
46c4267
·
1 Parent(s): a5853b7

Update root deployment config to run migrations

Browse files
Files changed (3) hide show
  1. Procfile +1 -1
  2. nixpacks.toml +1 -1
  3. railway.json +2 -2
Procfile CHANGED
@@ -1 +1 @@
1
- web: cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT
 
1
+ web: cd backend && alembic upgrade head && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT
nixpacks.toml CHANGED
@@ -5,4 +5,4 @@ nixPkgs = ["python311", "postgresql", "gcc"]
5
  cmds = ["python -m venv --copies /opt/venv", ". /opt/venv/bin/activate && pip install --no-cache-dir -r backend/requirements.txt"]
6
 
7
  [start]
8
- cmd = "cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT"
 
5
  cmds = ["python -m venv --copies /opt/venv", ". /opt/venv/bin/activate && pip install --no-cache-dir -r backend/requirements.txt"]
6
 
7
  [start]
8
+ cmd = "cd backend && alembic upgrade head && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT"
railway.json CHANGED
@@ -4,8 +4,8 @@
4
  "builder": "NIXPACKS"
5
  },
6
  "deploy": {
7
- "startCommand": "cd backend && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT",
8
  "restartPolicyType": "ON_FAILURE",
9
  "restartPolicyMaxRetries": 10
10
  }
11
- }
 
4
  "builder": "NIXPACKS"
5
  },
6
  "deploy": {
7
+ "startCommand": "cd backend && alembic upgrade head && python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT",
8
  "restartPolicyType": "ON_FAILURE",
9
  "restartPolicyMaxRetries": 10
10
  }
11
+ }