From 09232ffdef1eccb11401dc602670179dc6b73652 Mon Sep 17 00:00:00 2001 From: "Dutta, Jaibatrik" Date: Mon, 23 Jan 2017 00:28:53 +0530 Subject: [PATCH] Allow starting processes for each environment --- lib/API.js | 3 +++ lib/API/schema.json | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/API.js b/lib/API.js index 628fb0f0..e4b96746 100644 --- a/lib/API.js +++ b/lib/API.js @@ -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); }); diff --git a/lib/API/schema.json b/lib/API/schema.json index 1044b30f..5c434498 100644 --- a/lib/API/schema.json +++ b/lib/API/schema.json @@ -164,6 +164,9 @@ "force": { "type": "boolean" }, + "envSpecificInstance": { + "type": "boolean" + }, "post_update": { "type": "array" },