zeroed-some/localtoast / 21413ac

Browse files

getting desperate

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
21413acd5ed22cda29c2347bccd4e1ceafd4302f
Parents
02e5e89
Tree
236fa58

1 changed file

StatusFile+-
M backend/railway.json 2 2
backend/railway.jsonmodified
@@ -2,10 +2,10 @@
22
   "$schema": "https://railway.app/railway.schema.json",
33
   "build": {
44
     "builder": "NIXPACKS",
5
-    "buildCommand": "python manage.py collectstatic --noinput"
5
+    "buildCommand": "python manage.py collectstatic --noinput && python manage.py migrate"
66
   },
77
   "deploy": {
8
-    "startCommand": "python manage.py migrate && gunicorn localtoast.wsgi",
8
+    "startCommand": "gunicorn localtoast.wsgi:application --bind 0.0.0.0:$PORT",
99
     "restartPolicyType": "ON_FAILURE",
1010
     "restartPolicyMaxRetries": 10
1111
   }