Support loading the config file from an envrionment variable (SHOUT_CONFIG)

This commit is contained in:
Mook 2014-09-26 21:25:40 -07:00
parent dd697c4918
commit 277e8fe6d3
1 changed files with 4 additions and 0 deletions

View File

@ -195,3 +195,7 @@ module.exports = {
certificate: ""
}
};
if ("SHOUT_CONFIG" in process.env) {
module.exports = require(process.env.SHOUT_CONFIG);
}