arinai
arinai
RRailway
Created by arinai on 7/15/2023 in #✋|help
Django deployment error
Hi! I am following along this Mozilla tutorial for deploying Django to Railway (https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment#update_the_app_for_railway), and my app deployment keeps crashing. The logs suggest that it's crashing because the collectstatic command I have in my Procfile (which I simply copied from the tutorial) is asking for user input and crashes after waiting for it. I tried adding a no-input option for collectstatic and it didn't help. My Procfile contains this: web: python manage.py migrate && python manage.py collectstatic --no-input && gunicorn collie.wsgi After some googling, it seems to me that Procfiles are supposed to only contain the command to run the app, and aren't really meant to handle things like migrations and file organization, so the migrate and collectstatic commands shouldn't be in my Procfile. Is that correct? If so, then where should I have the migrate and collectstatic commands? My project id: c632aa00-e02e-45a6-bec7-0aa741699039
32 replies