mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-24 19:05:29 +00:00
WIP logo/terminal stuff
This commit is contained in:
committed by
Rory&
parent
3f7d26118d
commit
bd81cde977
+2
-2
@@ -35,7 +35,7 @@ try {
|
||||
}
|
||||
|
||||
if (cluster.isPrimary && process.env.NODE_ENV == "production") {
|
||||
console.log(`Primary ${process.pid} is running`);
|
||||
console.log(`Primary PID: ${process.pid}`);
|
||||
|
||||
// Fork workers.
|
||||
for (let i = 0; i < cores; i++) {
|
||||
@@ -43,7 +43,7 @@ if (cluster.isPrimary && process.env.NODE_ENV == "production") {
|
||||
}
|
||||
|
||||
cluster.on("exit", (worker) => {
|
||||
console.log(`worker ${worker.process.pid} died, restart worker`);
|
||||
console.log(`Worker ${worker.process.pid} died, restarting worker`);
|
||||
cluster.fork();
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user