diff --git a/website/src/server.js b/website/src/server.js index 7040d82c3d..494febfb97 100644 --- a/website/src/server.js +++ b/website/src/server.js @@ -13,7 +13,9 @@ var cores = +nconf.get("WEB_CONCURRENCY") || 0; if (cores!==0 && cluster.isMaster && (isDev || isProd)) { // Fork workers. If config.json has CORES=x, use that - otherwise, use all cpus-1 (production) - _.times(cores, cluster.fork); + _.times(cores, function () { + cluster.fork(); + }); cluster.on('disconnect', function(worker, code, signal) { var w = cluster.fork(); // replace the dead worker