Skip to content

Commit

Permalink
feat: Added filter for global envs
Browse files Browse the repository at this point in the history
  • Loading branch information
inerc committed Feb 10, 2020
1 parent 6b5da96 commit 41e9a8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Client.js
Expand Up @@ -72,7 +72,7 @@ Client.prototype.start = function(cb) {
ignore_signals : true
});

console.log('Launching in no daemon mode 3.0');
console.log('Launching in no daemon mode');

daemon.innerStart(function() {
KMDaemon.launchAndInteract(that.conf, {
Expand Down
6 changes: 3 additions & 3 deletions lib/Common.js
Expand Up @@ -195,9 +195,9 @@ Common.prepareAppConf = function(opts, app) {
return new_env
}

console.log(process.env)

app.env = [{}, app.filter_env && app.filter_env.length ? filterEnv(process.env) : env, app.env || {}].reduce(function(e1, e2){
app.env = [
{}, app.filter_env && app.filter_env.length ? filterEnv(process.env) : env, app.env || {}
].reduce(function(e1, e2){
return util._extend(e1, e2);
});

Expand Down

0 comments on commit 41e9a8f

Please sign in to comment.