Allow starting processes for each environment

This commit is contained in:
Dutta, Jaibatrik 2017-01-23 00:28:53 +05:30
parent bfacdbf768
commit 09232ffdef
2 changed files with 6 additions and 0 deletions

View File

@ -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);
});

View File

@ -164,6 +164,9 @@
"force": {
"type": "boolean"
},
"envSpecificInstance": {
"type": "boolean"
},
"post_update": {
"type": "array"
},