How do I run a script/command in my production service?
pkayokay
TRIALOP

a year ago

I linked my project and ran railway run iex -S mix to open the console in my Phoenix project, but it opens my local environment.

I also tried running the command once I was in the subshell but that did not work.

Ex. in Rails, railway run bin/rails console

Solved

5 Replies

pkayokay
TRIALOP

a year ago

a68b71aa-91b0-4bd6-ada1-44076513f78a


a year ago

Railway does not support SSHing into the host machine. railway run runs the command locally with the Railway environment variables available


pkayokay
TRIALOP

a year ago

Interesting, thanks for the answer


a year ago

No problem


a year ago

!s


Status changed to Solved adam about 1 year ago


Loading...