updated 'configExists' test to allow usage of NodeBB without a configuration file, closes #4824

v1.18.x
Julian Lam 9 years ago
parent 6628d5083a
commit 3eda04c9e7

@ -51,7 +51,7 @@ if (nconf.get('config')) {
configFile = path.resolve(__dirname, nconf.get('config'));
}
var configExists = file.existsSync(configFile);
var configExists = file.existsSync(configFile) || (nconf.get('url') && nconf.get('secret') && nconf.get('database'));
loadConfig();

Loading…
Cancel
Save