Make sure you have nobone installed.
npm i -g nobone-sync
Start a remote file server:
nobone sync -s
Start a local client to push change to remote server.
nobone sync config.coffee
The defaults of config.coffee is:
module.exports =
local_dir: 'local_dir'
remote_dir: 'remote_dir'
host: '127.0.0.1'
port: 8345
pattern: '**'
polling_interval: 500The pattern can be a string or an array. The pattern should at least match all directories if you want to listen create and move operations. For example:
- To ignore
jsandcssfile:'**/*.!(js|css)'. - To only watch
js,cssandjpg:[**/*.+(js|css)', '**/*.jpg']
Use bigger polling_interval if there are too many files to be watched.