mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
Allow starting processes for each environment
This commit is contained in:
parent
bfacdbf768
commit
09232ffdef
@ -895,6 +895,9 @@ API.prototype._startJson = function(file, opts, action, pipe, cb) {
|
||||
app.ignore_watch = opts.ignore_watch;
|
||||
if (opts.instances && typeof(opts.instances) === 'number')
|
||||
app.instances = opts.instances;
|
||||
if (app.envSpecificInstance) {
|
||||
app.name += ('-' + opts.env);
|
||||
}
|
||||
apps_name.push(app.name);
|
||||
});
|
||||
|
||||
|
||||
@ -164,6 +164,9 @@
|
||||
"force": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"envSpecificInstance": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"post_update": {
|
||||
"type": "array"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user