From 79bcb9be109af9c0c2713c8b7e8ca5b43880a752 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 24 May 2016 10:42:56 -0400 Subject: [PATCH] fixes #4675 --- loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader.js b/loader.js index b78abdc4a1..e853fa562c 100644 --- a/loader.js +++ b/loader.js @@ -171,7 +171,7 @@ function forkWorker(index, isPrimary) { } process.env.isPrimary = isPrimary; - process.env.isCluster = true; + process.env.isCluster = ports.length > 1 ? true : false; process.env.port = ports[index]; var worker = fork('app.js', [], {