Replace deprecated property
This commit is contained in:
parent
ac74a2cec4
commit
0ab0a6ff16
@ -15,7 +15,7 @@ try {
|
|||||||
console.log("[API] Failed to get thread count! Using 1...");
|
console.log("[API] Failed to get thread count! Using 1...");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cluster.isMaster && process.env.NODE_ENV == "production") {
|
if (cluster.isPrimary && process.env.NODE_ENV == "production") {
|
||||||
console.log(`Primary ${process.pid} is running`);
|
console.log(`Primary ${process.pid} is running`);
|
||||||
|
|
||||||
// Fork workers.
|
// Fork workers.
|
||||||
|
@ -17,7 +17,7 @@ try {
|
|||||||
console.log("[API] Failed to get thread count! Using 1...");
|
console.log("[API] Failed to get thread count! Using 1...");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cluster.isMaster) {
|
if (cluster.isPrimary) {
|
||||||
function getCommitOrFail() {
|
function getCommitOrFail() {
|
||||||
try {
|
try {
|
||||||
return execSync("git rev-parse HEAD").toString().trim();
|
return execSync("git rev-parse HEAD").toString().trim();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user