From 3eda04c9e71262a543371a3b94265b787ea934a7 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 5 Jul 2016 11:37:18 -0400 Subject: [PATCH] updated 'configExists' test to allow usage of NodeBB without a configuration file, closes #4824 --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();