Merge branch 'master' into develop

This commit is contained in:
Barış Soner Uşaklı
2024-03-14 12:11:59 -04:00
2 changed files with 4 additions and 2 deletions

View File

@@ -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",

View File

@@ -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}`);
}