railway ssh with interactive script
reece
PROOP

a year ago

Is there a way to run railway ssh with a command in an interactive environment?

See this recording: https://asciinema.org/a/jXudE1ibgqqMVeu1B9jQadm4K

I want to just be able to do the first command, but it bugs out because it doesn't think it's in an interactive environment. However, it works perfectly if I start the SSH session and then run the command. Is there a way to do this with a single command? (even if it's longer)

Solved

10 Replies

reece
PROOP

a year ago

friendly bump for any onlookers


a year ago

To tickle my fancy, can you try to run railway ssh -- "bin/rails c"


reece
PROOP

a year ago

behaves as a non-interactive shell 🙁


a year ago

Ah hmmm


a year ago

The sole point of the -- syntax was for one off non interactive commands, so I don't see us changing that anytime soon.


reece
PROOP

a year ago

can we add a --tty option to make any command behave like a tty


a year ago

At this time, we won't be adding more complexity to that CLI command.


reece
PROOP

a year ago

i hear what you're saying, but at the same time, feels like a missed opportunity. one of the main reasons i'm still using heroku is the convenience of being able to just do heroku console. I feel like being able to run commands in production environments is a very valid use case


a year ago

We're not blocking console access - you can still access it using railway ssh followed by your command(s). While I understand this extra step may not be ideal for your workflow, the functionality is still available through this method.


a year ago

!s


Status changed to Solved noahd 12 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...