From 54cb69f3db382e4a3c2eb7e3781f90ccad5d792a Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 19 Jul 2018 20:47:11 -0500 Subject: [PATCH] propagate env --- lib/core/processes/processLauncher.js | 1 + lib/core/processes/processWrapper.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/core/processes/processLauncher.js b/lib/core/processes/processLauncher.js index 7ee80fc5f..4e7eeee81 100644 --- a/lib/core/processes/processLauncher.js +++ b/lib/core/processes/processLauncher.js @@ -15,6 +15,7 @@ class ProcessLauncher { * @return {ProcessLauncher} The ProcessLauncher instance */ constructor(options) { + this.env = options.env; this.name = path.basename(options.modulePath); if (this._isDebug()) { diff --git a/lib/core/processes/processWrapper.js b/lib/core/processes/processWrapper.js index 26137474d..552f71325 100644 --- a/lib/core/processes/processWrapper.js +++ b/lib/core/processes/processWrapper.js @@ -17,6 +17,7 @@ class ProcessWrapper { constructor(options = {}) { this.options = Object.assign({pingParent: true}, options); this.interceptLogs(); + this.env = _options ? _options.env : 'development'; this.events = new Events(); if(this.options.pingParent) { this.pingParent();