mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
feat: add inspect argument
This commit is contained in:
@@ -106,6 +106,10 @@ function forkWorker(index, isPrimary) {
|
|||||||
if (nconf.get('expose-gc')) {
|
if (nconf.get('expose-gc')) {
|
||||||
execArgv.push('--expose-gc');
|
execArgv.push('--expose-gc');
|
||||||
}
|
}
|
||||||
|
if (nconf.get('inspect')) {
|
||||||
|
execArgv.push('--inspect');
|
||||||
|
}
|
||||||
|
|
||||||
if (!ports[index]) {
|
if (!ports[index]) {
|
||||||
return console.log(`[cluster] invalid port for worker : ${index} ports: ${ports.length}`);
|
return console.log(`[cluster] invalid port for worker : ${index} ports: ${ports.length}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user