summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/start.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/start.ts b/src/start.ts

index 1f069c51..d799c190 100644 --- a/src/start.ts +++ b/src/start.ts
@@ -9,7 +9,7 @@ import cluster from "cluster"; import os from "os"; const cores = Number(process.env.threads) || os.cpus().length; -if (cluster.isMaster && process.env.production == "true") { +if (cluster.isMaster && process.env.NODE_ENV == "production") { console.log(`Primary ${process.pid} is running`); // Fork workers.