diff --git a/server.js b/server.js index 89db84a..7db56fc 100644 --- a/server.js +++ b/server.js @@ -46,4 +46,7 @@ cluster((worker) => { app.listen(activePort, () => { console.log('worker ' + worker.id + ' is listening on port ' + activePort); }); +}, { + 'respawn': true, // workers will restart on failure + 'verbose': true, // logs what happens to console })