v1.18.x
Julian Lam 9 years ago
parent afb0312f51
commit 79bcb9be10

@ -171,7 +171,7 @@ function forkWorker(index, isPrimary) {
} }
process.env.isPrimary = isPrimary; process.env.isPrimary = isPrimary;
process.env.isCluster = true; process.env.isCluster = ports.length > 1 ? true : false;
process.env.port = ports[index]; process.env.port = ports[index];
var worker = fork('app.js', [], { var worker = fork('app.js', [], {

Loading…
Cancel
Save