config distribute

This commit is contained in:
cv
2021-05-12 23:27:31 +02:00
parent 152b2fc838
commit f2f24d8517
6 changed files with 2978 additions and 23 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ app.get('*', (req, res) => {
// Implement route for errors
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(500).send('Something broke!');
res.status(500).send(err.stack);
});
// create HTTP server
@@ -73,7 +73,7 @@ global.timer = new EventTimer(server, config);
global.timer.setupWithEventList(eventlist);
// Start server
server.listen(port, () =>
server.listen(port, '0.0.0.0', () =>
console.log(`HTTP Server is listening on port ${port}`)
);