can you use nano or vim to edit text files while cli ssh?
jjtoothman
HOBBYOP
4 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?
2 Replies
Status changed to Awaiting Railway Response Railway • 4 months ago
talosdeus
HOBBY
4 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.
4 months ago
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.