darestad
Complex deploy start commands don't work for me
That works, thank you! Another workaround is to specify the whole instruction in the CMD command (thought docker didn't support this for CMD).
CMD python3 manage.py migrate && gunicorn english_exercises_app.wsgi --timeout 300
However, if Railway doesn't actually support complex commands it would be great to rewrite the example app (https://github.com/railwayapp-templates/django/blob/main/railway.json) . Tried this with Nixpacks, not Dockerfile, still had the same issue of only the first command executing.
11 replies
Complex deploy start commands don't work for me
Thank you! This is a bit tricky for me, because in order to apply migrations, I need to set a database url during build. I would appreciate if you help me with how to do this in Railway.
I know how to do it locally by using
docker build --build-arg DATABASE_URL=...
, but no idea how to achieve this in railway.11 replies