forked from svrjs/svrjs
Fix environment variable support (after testing)
This commit is contained in:
parent
d02c9754c9
commit
caf2ad685d
1 changed files with 3 additions and 3 deletions
6
svr.js
6
svr.js
|
@ -1167,11 +1167,11 @@ try {
|
|||
}
|
||||
|
||||
try {
|
||||
environmentVariables.forEach(function(value, key) {
|
||||
process.env[key] = value;
|
||||
Object.keys(environmentVariables).forEach(function(key) {
|
||||
process.env[key] = environmentVariables[key];
|
||||
});
|
||||
} catch(err) {
|
||||
|
||||
// Failed to set environment variables.
|
||||
}
|
||||
|
||||
// Compability for older mods
|
||||
|
|
Reference in a new issue