mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
set isPrimary to true if its undefined
isPrimary was undefined if you are using clustering by adding isCluster:true to config.json, run 1 nodebb process on each virtual machine and use app.js instead of loader.js
This commit is contained in:
@@ -42,6 +42,8 @@ function loadConfig(configFile) {
|
||||
nconf.set('isPrimary', 'true');
|
||||
nconf.set('isCluster', 'false');
|
||||
}
|
||||
var isPrimary = nconf.get('isPrimary');
|
||||
nconf.set('isPrimary', isPrimary === undefined ? 'true' : isPrimary);
|
||||
|
||||
// Ensure themes_path is a full filepath
|
||||
nconf.set('themes_path', path.resolve(dirname, nconf.get('themes_path')));
|
||||
|
||||
Reference in New Issue
Block a user