mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
refactor: tab rules
This commit is contained in:
@@ -100,7 +100,7 @@ nconf.argv(opts).env({
|
||||
prestart.setupWinston();
|
||||
|
||||
// Alternate configuration file support
|
||||
const configFile = path.resolve(paths.baseDir, nconf.get('config') || 'config.json');
|
||||
const configFile = path.resolve(paths.baseDir, nconf.get('config') || 'config.json');
|
||||
const configExists = file.existsSync(configFile) || (nconf.get('url') && nconf.get('secret') && nconf.get('database'));
|
||||
|
||||
prestart.loadConfig(configFile);
|
||||
|
||||
@@ -97,7 +97,7 @@ async function checkPlugins() {
|
||||
const toCheck = Object.keys(plugins);
|
||||
if (!toCheck.length) {
|
||||
process.stdout.write(' OK'.green + ''.reset);
|
||||
return []; // no extraneous plugins installed
|
||||
return []; // no extraneous plugins installed
|
||||
}
|
||||
const suggestedModules = await getSuggestedModules(nbbVersion, toCheck);
|
||||
process.stdout.write(' OK'.green + ''.reset);
|
||||
|
||||
Reference in New Issue
Block a user