getting desperate
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
21413acd5ed22cda29c2347bccd4e1ceafd4302f- Parents
-
02e5e89 - Tree
236fa58
21413ac
21413acd5ed22cda29c2347bccd4e1ceafd4302f02e5e89
236fa58| Status | File | + | - |
|---|---|---|---|
| M |
backend/railway.json
|
2 | 2 |
backend/railway.jsonmodified@@ -2,10 +2,10 @@ | |||
| 2 | "$schema": "https://railway.app/railway.schema.json", | 2 | "$schema": "https://railway.app/railway.schema.json", |
| 3 | "build": { | 3 | "build": { |
| 4 | "builder": "NIXPACKS", | 4 | "builder": "NIXPACKS", |
| 5 | - "buildCommand": "python manage.py collectstatic --noinput" | 5 | + "buildCommand": "python manage.py collectstatic --noinput && python manage.py migrate" |
| 6 | }, | 6 | }, |
| 7 | "deploy": { | 7 | "deploy": { |
| 8 | - "startCommand": "python manage.py migrate && gunicorn localtoast.wsgi", | 8 | + "startCommand": "gunicorn localtoast.wsgi:application --bind 0.0.0.0:$PORT", |
| 9 | "restartPolicyType": "ON_FAILURE", | 9 | "restartPolicyType": "ON_FAILURE", |
| 10 | "restartPolicyMaxRetries": 10 | 10 | "restartPolicyMaxRetries": 10 |
| 11 | } | 11 | } |