Skip to content

Commit

Permalink
pass process environment variables to the phantomjs child - this make…
Browse files Browse the repository at this point in the history
…s package working in azure web apps
  • Loading branch information
pofider committed May 14, 2017
1 parent 9417665 commit f7808d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dedicatedProcessStrategy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var path = require("path"),
childProcess = require('child_process'),
fs = require("fs");
objectAssign = require('object-assign');


module.exports = function(options, requestOptions, id, cb) {
Expand Down Expand Up @@ -36,10 +37,9 @@ module.exports = function(options, requestOptions, id, cb) {
childArgs.push(settingsFilePath);

var childOptions = {
env: {
'PHANTON_MAX_LOG_ENTRY_SIZE': options.maxLogEntrySize || 1000
}
}
env: objectAssign({}, process.env, { 'PHANTON_MAX_LOG_ENTRY_SIZE': options.maxLogEntrySize || 1000 })
}


var isDone = false;

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"dependencies": {
"in-publish": "2.0.0",
"lodash": "4.13.1",
"object-assign": "4.1.1",
"phantom-workers": "0.4.1",
"uuid": "2.0.2"
},
Expand Down

0 comments on commit f7808d0

Please sign in to comment.