Run Command Railaway
blueedgetechnical
HOBBYOP

2 months ago

Hey I wanted to ask if its true that I cant run commands on the hobbyplan inside railway. And if so how I should handle db-updates. My goal was to run my db-ini script trough railway so it updates my postgres db on railway. Thanks for your help guys :)

Solved

5 Replies

blueedgetechnical
HOBBYOP

2 months ago

Another option would be to use the public database-url i guess?


2 months ago

Hey, you can run SQL queries directly on Railway if you enable the raw SQL query feature flag here: https://railway.com/account/feature-flags


blueedgetechnical
HOBBYOP

2 months ago

Will i be able to run my python init script as well?


2 months ago

You can run it in your Python service by specifying it as a pre deploy command.
https://docs.railway.com/guides/pre-deploy-command


blueedgetechnical
HOBBYOP

2 months ago

okay thanks for the help


Status changed to Solved uxuz about 2 months ago


Loading...