mirror of
https://github.com/spacebarchat/server.git
synced 2026-09-17 10:16:01 +00:00
⬆️ npm i @fosscord/server-util@1.3.5
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user