0.3.0 • Published 7 years ago

shipit-pm v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

shipit-pm

pm2 tasks for Shipit

support deploy & rollback

Usage

var pm = require('shipit-pm');
var deploy = require('shipit-deploy');
var cnpm = require('shipit-cnpm');
module.exports = function(shipit) {
  deploy(shipit);
  cnpm(shipit);
  pm(shipit);
  shipit.initConfig({
    default: {
      workspace: '/tmp/deploy/node-example',
      deployTo: '/home/work/node-example',
      repositoryUrl: 'https://github.com/demohi/node-example.git',
      ignores: ['.git'],
      keepReleases: 2,
      deleteOnRollback: false,
      shallowClone: true,
      cnpm: {
        flags: '--production'
      },
      pm: {
        production: '/home/work/node-example/current/pm2/production.json',
        development: '/home/work/node-example/current/pm2/development.json'
      }
    },
    development: {
      servers: ['work@10.6.12.167']
    }
  });
}
0.3.0

7 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.1

9 years ago