Last Updated: February 25, 2016
·
669
· tuxcodejohn

auto-test-deploy

to restart for example an nodejs server during development it migth be handy to watch modifications via inotify and restart the server:

node exampl.js while true; do inotifywait -r -e MODIFY /tmp/exampledir  && pkill node && sync ; node exampl.js & echo test; done;