diff options
Diffstat (limited to 'bundle/src/start.ts')
-rw-r--r-- | bundle/src/start.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 2bfb0069..ee012c15 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -60,6 +60,11 @@ if (cluster.isMaster && !process.env.masterStarted) { console.log(`[Database] started`); console.log(`[Process] running with pid: ${process.pid}`); + if (cores === 1) { + require("./Server.js"); + return; + } + // Fork workers. for (let i = 0; i < cores; i++) { cluster.fork(); |