can you use nano or vim to edit text files while cli ssh?
jjtoothman
HOBBYOP

14 days 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?

$10 Bounty

2 Replies

Status changed to Awaiting Railway Response Railway 14 days ago


talosdeus
HOBBY

14 days 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.


Loading...