Access to the Command Shell or Console to run migration commands on Django app deployed on Railways

olubode4
PRO

9 months ago

Please I need access to the Command Shell or Console to run migration commands on the Django app deployed on Railways. I have checked around the dashboard to find the shell or Console to run some makemigration, migration and reverse migration commands on my Postgres database linked to my app but could find that. I hope this is possible and I could I achieve this please.

Thank you.

2 Replies

9 months ago

We do not provide shell access on Railway.

It's possible to create a subshell per docs here: https://docs.railway.app/reference/cli-api#shell

Otherwise, a Django tutorial and links to Django templates might be helpful. Those are available here: https://docs.railway.app/guides/django


david

We do not provide shell access on Railway.It's possible to create a subshell per docs here: https://docs.railway.app/reference/cli-api#shellOtherwise, a Django tutorial and links to Django templates might be helpful. Those are available here: https://docs.railway.app/guides/django

samuel-jarvis
HOBBY

2 months ago

Will this be added in future. Heroku has it and it's very helpful for running seed commands


Access to the Command Shell or Console to run migration commands on Django app deployed on Railways - Railway Help Station