⬆️ npm i @fosscord/server-util@1.3.5
This commit is contained in:
parent
26d7ed8368
commit
c2eecb9500
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -29,7 +29,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
"homepage": "https://github.com/fosscord/fosscord-api#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fosscord/server-util": "^1.3.3",
|
"@fosscord/server-util": "^1.3.5",
|
||||||
"@types/jest": "^26.0.22",
|
"@types/jest": "^26.0.22",
|
||||||
"@types/json-schema": "^7.0.7",
|
"@types/json-schema": "^7.0.7",
|
||||||
"ajv": "^8.4.0",
|
"ajv": "^8.4.0",
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import cluster from "cluster";
|
|||||||
import os from "os";
|
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.production == "true") {
|
if (cluster.isMaster && process.env.NODE_ENV == "production") {
|
||||||
console.log(`Primary ${process.pid} is running`);
|
console.log(`Primary ${process.pid} is running`);
|
||||||
|
|
||||||
// Fork workers.
|
// Fork workers.
|
||||||
|
|||||||
Reference in New Issue
Block a user