serkanyersen / sync

syncs your local folder with remote folder using scp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sync changes to multiple remote servers

sbhal opened this issue · comments

How to sync changes to multiple dev/test envs?

sync can only upload to a single server. but you can write multiple config files and start two instances of the sync with respective configs. just do

syncjs --config server1-sync-config.js
# on different terminal
syncjs --config server2-sync-config.js

and it should work.