From 277e8fe6d320e134b15a496413ae1b074be94f6c Mon Sep 17 00:00:00 2001 From: Mook Date: Fri, 26 Sep 2014 21:25:40 -0700 Subject: [PATCH] Support loading the config file from an envrionment variable (SHOUT_CONFIG) --- config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.js b/config.js index 84b6c0d..012d420 100644 --- a/config.js +++ b/config.js @@ -195,3 +195,7 @@ module.exports = { certificate: "" } }; + +if ("SHOUT_CONFIG" in process.env) { + module.exports = require(process.env.SHOUT_CONFIG); +}