Store location of config file when specified on the command line so it can be reloade...
authorJack Allnutt <jack@allnutt.eu>
Tue, 11 Feb 2014 18:23:57 +0000 (18:23 +0000)
committerJack Allnutt <jack@allnutt.eu>
Tue, 11 Feb 2014 18:23:57 +0000 (18:23 +0000)
server/configuration.js

index f9ed927180fbc36652f6521c3c3d2b3db67251db..4f0ce0372c802de23a420832c3e70c6bc0149091 100644 (file)
@@ -28,6 +28,9 @@ Config.prototype.loadConfig = function (manual_config_file) {
 
                     // Try load the new config file
                     new_config = require(manual_config_file);
+
+                    // Save location of configuration file so that we can re-load it later
+                    this.manual_config_file = manual_config_file;
                 }
             } catch (e) {
                 console.log('An error occured parsing the config file ' + manual_config_file + ': ' + e.message);