Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

shipit-pm

0.3.0 • Public • Published

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']
    }
  });
}

install

npm i shipit-pm

Downloadsweekly downloads

4

version

0.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability