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 {
|
try {
|
||||||
environmentVariables.forEach(function(value, key) {
|
Object.keys(environmentVariables).forEach(function(key) {
|
||||||
process.env[key] = value;
|
process.env[key] = environmentVariables[key];
|
||||||
});
|
});
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
|
// Failed to set environment variables.
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compability for older mods
|
// Compability for older mods
|
||||||
|
|
Reference in a new issue