mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
set isPrimary and isCluster
This commit is contained in:
@@ -23,6 +23,11 @@
|
||||
relative_path: ''
|
||||
});
|
||||
|
||||
if (!nconf.get('isCluster')) {
|
||||
nconf.set('isPrimary', 'true');
|
||||
nconf.set('isCluster', 'false');
|
||||
}
|
||||
|
||||
var dbType = nconf.get('database');
|
||||
var testDbConfig = nconf.get('test_database');
|
||||
var productionDbConfig = nconf.get(dbType);
|
||||
|
||||
Reference in New Issue
Block a user