Setup a remote repo you can git push deploy to
MIT License
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-service
npm install --production
npm run one-time-setup
. This is only run once unless you change the script.npm run start-service
The 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