Syncing files using mutagen
I recommend using mutagen to sync your files between your development machine and the server.
Smallweb include a series of commands to help you interact with mutagen, and make the process as seamless as possible.
First, install mutagen on your development machine:
sh
brew install mutagen-io/mutagen/mutagen
Then, run the following command to sync your files:
bash
# enable the mutagen daemon
mutagen daemon register
# sync your local smallweb dir with /home/smallweb/smallweb on my-ssh-server
smallweb sync my-ssh-server /home/smallweb/smallweb
From now on, each time you make a change to your files, they will be automatically synced to the server, and vice-versa.
Your git repository will only be present on one machine, you can choose if you want to keep it on your development machine or on the server (syncing git repositories between machines is not recommended).