exit
This commit is contained in:
parent
996822b046
commit
ba62603576
3 changed files with 7 additions and 5 deletions
|
|
@ -2,4 +2,4 @@
|
||||||
|
|
||||||
cd "$RUN_DIR/server"
|
cd "$RUN_DIR/server"
|
||||||
|
|
||||||
nodemon index.js
|
nodemon index.js -e js
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,14 @@
|
||||||
const hostname = '127.0.0.1'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
http: {
|
http: {
|
||||||
hostname: hostname,
|
hostname: '127.0.0.1',
|
||||||
port: 1337,
|
port: 1337,
|
||||||
},
|
},
|
||||||
ws: {
|
ws: {
|
||||||
hostname: hostname,
|
hostname: '127.0.0.1',
|
||||||
port: 1338,
|
port: 1338,
|
||||||
connectstring: `ws://localhost:1338/ws`,
|
connectstring: `ws://localhost:1338/ws`,
|
||||||
},
|
},
|
||||||
|
persistence: {
|
||||||
|
interval: 30000,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -180,6 +180,7 @@ const gracefulShutdown = (signal) => {
|
||||||
Game.persistAll()
|
Game.persistAll()
|
||||||
server.close()
|
server.close()
|
||||||
wss.close()
|
wss.close()
|
||||||
|
process.exit()
|
||||||
}
|
}
|
||||||
|
|
||||||
// used by nodemon
|
// used by nodemon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue