summary refs log tree commit diff
path: root/bundle/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-24 10:43:43 +0200
commit7d343458ab868ede0cf468e8891333a170fdd24e (patch)
treead9e5464d24dc106734a1c60cf4f299e8d0e8473 /bundle/src
parent:sparkles: added User flags (diff)
parent:art: remove start from setup script (diff)
downloadserver-7d343458ab868ede0cf468e8891333a170fdd24e.tar.xz
Merge branch 'master' of https://github.com/fosscord/fosscord-server
Diffstat (limited to 'bundle/src')
-rw-r--r--bundle/src/start.ts8
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"); }