New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

shipit-pm2

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shipit-pm2

PM2 tasks for shipit.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 16 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc