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