This commit is contained in:
Zutatensuppe 2020-12-04 21:19:45 +01:00
parent 996822b046
commit ba62603576
3 changed files with 7 additions and 5 deletions

View file

@ -2,4 +2,4 @@
cd "$RUN_DIR/server" cd "$RUN_DIR/server"
nodemon index.js nodemon index.js -e js

View file

@ -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,
},
} }

View file

@ -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