keep config.js in config/
and persist it via various docker mechanisms
This commit is contained in:
@@ -13,10 +13,10 @@ var nThen = require("nthen");
|
||||
|
||||
var config;
|
||||
try {
|
||||
config = require('./config');
|
||||
config = require('./config/config');
|
||||
} catch (e) {
|
||||
console.log("You can customize the configuration by copying config.example.js to config.js");
|
||||
config = require('./config.example');
|
||||
console.log("You can customize the configuration by copying config/config.example.js to config/config.js");
|
||||
config = require('./config/config.example');
|
||||
}
|
||||
var websocketPort = config.websocketPort || config.httpPort;
|
||||
var useSecureWebsockets = config.useSecureWebsockets || false;
|
||||
|
||||
Reference in New Issue
Block a user