diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-19 18:45:09 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-19 18:45:09 +0200 |
commit | d45ea78ae6f2cbde69fd0b335d52c379846fce69 (patch) | |
tree | c27476208ca8f2c6012677096fe025259c0e8acf /bundle/src | |
parent | :truck: move handleFile to cdn (diff) | |
download | server-d45ea78ae6f2cbde69fd0b335d52c379846fce69.tar.xz |
:bug: fix bundle debug
Diffstat (limited to 'bundle/src')
-rw-r--r-- | bundle/src/start.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 843e3812..f68a65bf 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -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"); } |