R
Railway6mo ago
Nahasco

How to run commands on live service?

I would like to run a shell command on my django service thats online. Things like "python manage.py migrate" or "python manage.py custom_command".
Solution:
that is not possible, instead run these commands locally with railway run that runs the command on your computer, but makes the environment variables from your railway service available locally
Jump to solution
3 Replies
Percy
Percy6mo ago
Project ID: 643c9962-5fa0-449c-82e0-67b30f66c552
Nahasco
NahascoOP6mo ago
643c9962-5fa0-449c-82e0-67b30f66c552
Solution
Brody
Brody6mo ago
that is not possible, instead run these commands locally with railway run that runs the command on your computer, but makes the environment variables from your railway service available locally
Want results from more Discord servers?
Add your server