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

2 years 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

2 years ago

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


2 years ago

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


pkayokay
TRIALOP

2 years ago

Interesting, thanks for the answer


2 years ago

No problem


2 years ago

!s


Status changed to Solved adam • over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...