mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 08:31:22 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
"nodebb-plugin-ntfy": "1.7.3",
|
||||
"nodebb-plugin-spam-be-gone": "2.2.1",
|
||||
"nodebb-rewards-essentials": "1.0.0",
|
||||
"nodebb-theme-harmony": "1.2.39",
|
||||
"nodebb-theme-harmony": "1.2.40",
|
||||
"nodebb-theme-lavender": "7.1.7",
|
||||
"nodebb-theme-peace": "2.2.4",
|
||||
"nodebb-theme-persona": "13.3.11",
|
||||
|
||||
@@ -99,7 +99,9 @@ Loader.start = function () {
|
||||
function forkWorker(index, isPrimary) {
|
||||
const ports = getPorts();
|
||||
const args = [];
|
||||
|
||||
if (nconf.get('max-memory')) {
|
||||
args.push(`--max-old-space-size=${nconf.get('max-memory')}`);
|
||||
}
|
||||
if (!ports[index]) {
|
||||
return console.log(`[cluster] invalid port for worker : ${index} ports: ${ports.length}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user