add config

This commit is contained in:
Jeffrey Sun 2017-05-02 14:37:03 -07:00
parent 7c34463cc4
commit f5712fef77

View file

@ -46,4 +46,7 @@ cluster((worker) => {
app.listen(activePort, () => { app.listen(activePort, () => {
console.log('worker ' + worker.id + ' is listening on port ' + 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
}) })