Skip to content
can you use nano or vim to edit text files while cli ssh?
jjtoothman
OP

9 months ago

Trying to edit json files while using using railyway cli ssh. bash says nano or vim can't be found. Can I not edit json config files?

Solved$10 Bounty

Pinned Solution

If you really want to modify files in a volume, I'd suggest deploying a Filebrowser service, mounting your volume to that service, and downloading/uploading from there.

Otherwise, what talosdeus said. You're not supposed to directly edit application files through Railway SSH.

2 Replies

Status changed to Awaiting Railway Response Railway • 9 months ago


talosdeus

9 months ago

You are not supposed to edit .json files in ssh. You should use ssh only for debugging. This is because if you redeploy your config file is going to be overwritten. Unless you are talking about externally attached storage.


If you really want to modify files in a volume, I'd suggest deploying a Filebrowser service, mounting your volume to that service, and downloading/uploading from there.

Otherwise, what talosdeus said. You're not supposed to directly edit application files through Railway SSH.


Status changed to Solved 0x5b62656e5d • 23 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...