/auto-deploy-by-rsync

Auto monitor files change and copy files to remote server.

Primary LanguageShell

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 . user@everet.org:~/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

sample