mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(server); allow debugging
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user