tenseleyflow/jubjubword / 1f712b4

Browse files

Remove cd backend from nixpacks.toml - Railway auto-detects backend dir

Railway is auto-setting the working directory to backend/ where
requirements.txt is located. Our cd backend commands were failing
because it was trying to cd into backend/backend/.

This should allow load_corpora to run properly.

Co-authored-by: mfwolffe <wolffemf@dukes.jmu.edu>
Co-authored-by: espadonne <espadonne@outlook.com>
Authored by Claude <noreply@anthropic.com>
SHA
1f712b4ec1fd744b5eaab39b8bac98001db724ae
Parents
24bc443
Tree
e895d14

1 changed file

StatusFile+-
M nixpacks.toml 3 3
nixpacks.tomlmodified
@@ -2,10 +2,10 @@
22
 nixPkgs = ["python311", "postgresql"]
33
 
44
 [phases.install]
5
-cmds = ["cd backend && pip install -r requirements.txt"]
5
+cmds = ["pip install -r requirements.txt"]
66
 
77
 [phases.build]
8
-cmds = ["cd backend && python manage.py collectstatic --noinput"]
8
+cmds = ["python manage.py collectstatic --noinput"]
99
 
1010
 [start]
11
-cmd = "cd backend && python manage.py migrate && python manage.py load_corpora --verbosity=2 && gunicorn jubjub.wsgi:application --bind 0.0.0.0:$PORT"
11
+cmd = "python manage.py migrate && python manage.py load_corpora --verbosity=2 && gunicorn jubjub.wsgi:application --bind 0.0.0.0:$PORT"