railway ssh with interactive script
reece
PROOP

10 months 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

10 months ago

friendly bump for any onlookers


10 months ago

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


reece
PROOP

10 months ago

behaves as a non-interactive shell 🙁


10 months ago

Ah hmmm


10 months 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

10 months ago

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


10 months ago

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


reece
PROOP

10 months 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


10 months 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.


10 months ago

!s


Status changed to Solved noahd 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...