#Sync directories on file change:
- Install watchdog:
sudo pip install watchdog
- Copy the contents of the Makefile in this gist to a file called
Makefile
in your project folder - Change the paths and options in the makefile as needed!
- user@remotehost should be your user and hostname on the remote machine. Everything after the colon is the filepath on the remote
- exclude flags can be used to ignore source control or bytecode files
- Use your new makefile! From the same directory as the Makefile:
make watch