7 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)
10 Replies
7 months ago
To tickle my fancy, can you try to run railway ssh -- "bin/rails c"
7 months ago
Ah hmmm
7 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.
7 months ago
At this time, we won't be adding more complexity to that CLI command.
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
7 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.
6 months ago
!s
Status changed to Solved noahd • 6 months ago