Coder Social home page Coder Social logo

shipit-pm2's Introduction

shipit-pm2

A set of tasks for Shipit used for pm2 specific tasks.

Features:

  • Automatically starts or restarts your processes.json. Triggered on published.
  • Automatically updates the process execute_interpreter to a specific node version before start or restart. Triggered on updated. (Note: this currently only works with a single app process and requires shipit-nvm).
  • Works with shipit-deploy
  • Has a direct pass though task to pm2 commands.
  • Works via shipit-cli and grunt-shipit

Install

npm install shipit-pm2

Usage

Just simply run: (This triggers the pm2 specific tasks on the events mentioned previously. No additional config necessary.)

shipit staging deploy

Or you can run the tasks separately :

  shipit staging pm2:init pm2:config
  shipit staging pm2:run --cmd "update"

Options shipit.config.pm2

pm2.json

Type: String Default: 'app.json'

An string specifying the path to the pm2 json app declaration file (see pm2 readme for more info).

Example shipitfile.js options usage

module.exports = function (shipit) {
  require('shipit-deploy')(shipit);
  require('shipit-pm2')(shipit);

  shipit.initConfig({
    default: {
      pm2: {
        json: '/etc/pm2/conf.d/node-app.json'
      }
    }
  });
};

License

MIT

shipit-pm2's People

Watchers

James Cloos avatar Gencer W. Genç avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.