🐛 fix bundle debug

This commit is contained in:
Flam3rboy
2021-09-19 18:45:09 +02:00
parent f8b1d93e3f
commit d45ea78ae6
4 changed files with 10 additions and 5 deletions
+5 -3
View File
@@ -13,7 +13,7 @@ if (cluster.isMaster && !process.env.masterStarted) {
initStats();
if (cores === 1) {
require("./Server.js");
require("./Server");
return;
}
@@ -23,10 +23,12 @@ if (cluster.isMaster && !process.env.masterStarted) {
}
cluster.on("exit", (worker: any, code: any, signal: any) => {
console.log(`[Worker] died with pid: ${worker.process.pid} , restarting ...`);
console.log(
`[Worker] died with pid: ${worker.process.pid} , restarting ...`
);
cluster.fork();
});
})();
} else {
require("./Server.js");
require("./Server");
}