summary refs log tree commit diff
path: root/src/start.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 13:31:06 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 13:31:06 +0200
commitc2eecb9500ce53265e308a226f4829148bced2e0 (patch)
treee7f9a625e4f7b6c7ccbf8fb9525d2e7c152091e6 /src/start.ts
parent:bug: fix EMAIL_ALREADY_REGISTERED error message (diff)
downloadserver-c2eecb9500ce53265e308a226f4829148bced2e0.tar.xz
:arrow_up: npm i @fosscord/server-util@1.3.5
Diffstat (limited to 'src/start.ts')
-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.