1.Simply add the deploy.sh to your application folder
2.Start your service
deploy.sh start myApp.js
3.Config your CI tasks (example: Jenkins) to run this every 10 minutes
./deploy.sh update
./deploy.sh start testApp.js
./deploy.sh update
./deploy.sh status
./deploy.sh stop