mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-26 10:57:31 +00:00
⚡ vertically scale bundle
This commit is contained in:
@@ -7,7 +7,7 @@ config();
|
||||
import { FosscordServer } from "./Server";
|
||||
import cluster from "cluster";
|
||||
import os from "os";
|
||||
const cores = Number(process.env.threads) || os.cpus().length;
|
||||
const cores = Number(process.env.THREADS) || os.cpus().length;
|
||||
|
||||
if (cluster.isMaster && process.env.NODE_ENV == "production") {
|
||||
console.log(`Primary ${process.pid} is running`);
|
||||
|
||||
Reference in New Issue
Block a user