richard_21848
Run a command in production (rake)
ok rad, this was slightly more complicated because my app runs in a container locally (and doesn't work outside it), in case it's any use to others I created a new compose service:
with
bin/railway_entrypoint
:
and added .railway.env
with a RAILWAY_TOKEN
in . Then it's docker compose run --rm railway run rake db:seed
Thanks for confirming this is the recommended way!9 replies