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

olubode4PRO

7 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.

1 Replies

7 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


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