mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-04 23:49:45 +02:00
updated 'configExists' test to allow usage of NodeBB without a configuration file, closes #4824
This commit is contained in:
2
app.js
2
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user