Simple sync of local and remote folders using rsync.
- Clone or download
- Create and
.env
-file in the root and add your SSH credentials (or you can just hardcode them intosync.js
if you want). - Add your
fromFolder
andtoFolder
, default fromFolder is./src
. - Run
sync
,watch
orsync.js
directly depending on your taste, to sync the folders. - Done!
SSH_USER=<ssh username>
SSH_HOST=<ssh host>
To have a smooth passwordless flow, you need to have your SSH credentials already setup and ready on both your local and remote, how to do that is not covered in this repo but here is a pretty nice article that might help you.
MIT