Deploy node application with pm2-deploy
What this is
- A simple grunt task for pm2 deployment system
- This task executes
pm2 deploycommand. Task target will be used as the environment.
- If remote server has to be setup, this task does it.
As for this ecosystem.json,
these commands are available:
$ grunt pm2deploy:production # deploy using production env$ grunt pm2deploy:dev # deploy using dev env
$ npm install grunt-pm2-deploy --save-dev
Run this task with the
grunt pm2deploy command.
ecosystem file name.
To run the test suite, first install the dependencies, then run
$ npm install$ npm test