mirror of
https://git.sleeping.town/mirrors/foxy-moxy
synced 2025-06-16 20:31:29 -07:00
Linting with "test"
This commit is contained in:
parent
e32a19b954
commit
c5a8acc12d
6 changed files with 219 additions and 211 deletions
18
run.js
18
run.js
|
@ -1,13 +1,13 @@
|
|||
const cluster = require('express-cluster');
|
||||
const app = require('./server.js');
|
||||
const cluster = require('express-cluster')
|
||||
const app = require('./server.js')
|
||||
|
||||
const activePort = process.env.PORT || 3000;
|
||||
const activePort = process.env.PORT || 3000
|
||||
|
||||
cluster((worker) => {
|
||||
app.listen(activePort, () => {
|
||||
console.log('worker ' + worker.id + ' is listening on port ' + activePort);
|
||||
});
|
||||
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
|
||||
});
|
||||
'respawn': true, // workers will restart on failure
|
||||
'verbose': true // logs what happens to console
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue