Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.31k stars 2.61k forks source link

JSON declaration: Declare modules/services your app depends on #1829

Open Unitech opened 8 years ago

Unitech commented 8 years ago

The goal of this feature is to add a module section, for PM2 to install modules your application depends on.

{
  /*****
   * Legacy application declaration
   */
  "apps" : [{
    // Application #1
    "name"        : "worker-app",
    "script"      : "worker.js"
  },{
    // Application #2
    "name"       : "api-app",
    "script"     : "api.js"
  }],

  /*****
   * Module declaration part
   * Here you can install modules/service your application depends on
   */
  "modules" : [{
    "name"    : "pm2-intercom",
    "version" : "^1.0.0",
    "configuration" : {
      "strategy"   : "round-robin",
      "subscribe" : true
    }
  }, {
    "name" : "pm2-auth-proxy",
    "version" : "2.0.2"
    "configuration" : {
      "authkey" : "XXXXX"
    }
  }],

  /*****
   * Keymetrics connection
   * Maybe move this in deploy section instead
   */
  "keymetrics" : {
     "public_key"  : "XXXXXXX",
     "private_key" : "YYYYYYY",
     "recycle"        : true,
     "machine_name" : "MY-MACHINE-NAME"
   }
}
Unitech commented 7 years ago

Bump