feat(server); allow debugging

This commit is contained in:
Matteo Pagliazzi
2020-04-29 12:30:48 +02:00
parent ec5de91123
commit ea1569e23e

View File

@@ -28,6 +28,10 @@ if (CORES !== 0 && cluster.isMaster && (IS_DEV || IS_PROD)) {
// Fork workers. If config.json has WEB_CONCURRENCY=x,
// use that - otherwise, use all cpus-1 (production)
for (let i = 0; i < CORES; i += 1) {
cluster.setupMaster({
exec: process.argv[1],
args: ['--perf-basic-prof'],
});
cluster.fork();
}