auto-deploy-by-rsync
auto-deploy-by-rsync copied to clipboard
Auto monitor files change and copy files to remote server.
auto-deploy-by-rsync
use inotify to check files change and auto deploy.
Install
Copy or link auto-deploy-by-rsync, mac-auto-deploy into you $PATH.
Just like ln -s ~/projects/auto-deploy-by-rsync/mac-auto-deploy ~/.local/bin/.
Linux
Before using this script, you need to do sudo apt-get install inotify-tools.
And run this on your project folder.
auto-deploy-by-rsync . [email protected]:~/work/2959_add_new_type_awards
Mac
In Mac OS X, we need fswatch.
brew install fswatch
And run this on your project folder.
mac-auto-deploy . gzhualiang@dev35:~/git/`basename $(PWD)`
Screencast
