propagate env

This commit is contained in:
Michael Bradley, Jr 2018-07-19 20:47:11 -05:00 committed by Pascal Precht
parent c587cbdfa6
commit 54cb69f3db
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class ProcessLauncher {
* @return {ProcessLauncher} The ProcessLauncher instance * @return {ProcessLauncher} The ProcessLauncher instance
*/ */
constructor(options) { constructor(options) {
this.env = options.env;
this.name = path.basename(options.modulePath); this.name = path.basename(options.modulePath);
if (this._isDebug()) { if (this._isDebug()) {

View File

@ -17,6 +17,7 @@ class ProcessWrapper {
constructor(options = {}) { constructor(options = {}) {
this.options = Object.assign({pingParent: true}, options); this.options = Object.assign({pingParent: true}, options);
this.interceptLogs(); this.interceptLogs();
this.env = _options ? _options.env : 'development';
this.events = new Events(); this.events = new Events();
if(this.options.pingParent) { if(this.options.pingParent) {
this.pingParent(); this.pingParent();