Skip to content

Node.js based forum software built for the modern web

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

Julian Lam3eda04c9e712
diff --git a/app.js b/app.js
index 790551479c..1fd183757f 100644
--- a/app.js
+++ b/app.js
@@ -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();