Open Unitech opened 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" } }
Bump
The goal of this feature is to add a module section, for PM2 to install modules your application depends on.