From c2eecb9500ce53265e308a226f4829148bced2e0 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 26 May 2021 13:31:06 +0200 Subject: :arrow_up: npm i @fosscord/server-util@1.3.5 --- src/start.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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. -- cgit 1.5.1