From ea1569e23ec8d674524eaec28ee9d58a2c78d5a1 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 29 Apr 2020 12:30:48 +0200 Subject: [PATCH] feat(server); allow debugging --- website/server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/server/index.js b/website/server/index.js index 832a06cc74..923d42a24a 100644 --- a/website/server/index.js +++ b/website/server/index.js @@ -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(); }