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


adam
MODERATOR

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


adam
MODERATOR

a year ago

No problem


adam
MODERATOR

a year ago

!s


Status changed to Solved adam 11 months ago


Loading...