vertically scale bundle

This commit is contained in:
Flam3rboy
2021-10-18 17:38:31 +02:00
parent 70d0d11ffd
commit f6b00d2fcd
4 changed files with 71 additions and 37 deletions

View File

@@ -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`);