From 0d3aba950a8073e0c8b6740cc73c52a4bc8b81bf Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 25 Jan 2017 23:27:34 +0000 Subject: [PATCH] fix(config): remove deprecated env var --- config.json.example | 2 +- website/server/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json.example b/config.json.example index 86fc3dc50d..f76041b85f 100644 --- a/config.json.example +++ b/config.json.example @@ -2,7 +2,7 @@ "PORT":3000, "ENABLE_CONSOLE_LOGS_IN_PROD":"false", "IP":"0.0.0.0", - "CORES":1, + "WEB_CONCURRENCY":1, "BASE_URL":"http://localhost:3000", "FACEBOOK_KEY":"123456789012345", "FACEBOOK_SECRET":"aaaabbbbccccddddeeeeffff00001111", diff --git a/website/server/index.js b/website/server/index.js index e41be424a6..cbba4caec8 100644 --- a/website/server/index.js +++ b/website/server/index.js @@ -31,7 +31,7 @@ if (IS_PROD && nconf.get('NEW_RELIC_ENABLED') === 'true') require('newrelic'); // Setup the cluster module if (CORES !== 0 && cluster.isMaster && (IS_DEV || IS_PROD)) { - // Fork workers. If config.json has CORES=x, use that - otherwise, use all cpus-1 (production) + // 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.fork(); }