use inotify to check files change and auto deploy.
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/
.
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 . user@everet.org:~/work/2959_add_new_type_awards
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)`