Remote Editing¶
Setup¶
Initial setup is the same as for Syncing Configs.
The most important thing is this one:
directory: /etc/daemonio-configs
num-levels: 1
append-only: false
upload-keys: [my_daemonio]
Client setup is also the same. If you can sync --replace
you can also
edit some file:
How it Works¶
ciruela edit server.name --dir /my-daemonio/current --file /config.yaml
This will do the following:
- Download a specified file from a specified directory
- Launch whatever is specified in
CIRUELA_EDITOR
,VISUAL
orEDITOR
environment variables (in that order) orvim
if none.
- If editor is exited successfully upload the new file back to the original directory