Node.js based forum software built for the modern web
feat: add inspect argument
Barış Soner Uşaklı955b27debc03
diff --git a/loader.js b/loader.jsindex 0f80697633..50f79be5fc 100644--- a/loader.js+++ b/loader.js@@ -106,6 +106,10 @@ function forkWorker(index, isPrimary) {if (nconf.get('expose-gc')) {execArgv.push('--expose-gc');}+ if (nconf.get('inspect')) {+ execArgv.push('--inspect');+ }+if (!ports[index]) {return console.log(`[cluster] invalid port for worker : ${index} ports: ${ports.length}`);}