Small bash program that
npm install -g git-push-deploy
cd some-cool-repo
git-push-deploy user@my-cool-server.com
Then after adding a stop-service / start-service script to
package.json you can deploy your service
git push deploy master
When receiving a push the remote repo does the following
npm run stop-servicenpm install --productionnpm run one-time-setup. This is only run once unless you change the script.npm run start-serviceThe start-service script should make the application start running in the background and the stop-service script should make that background process stop running.
Thats it! Happy deploying!
MIT