From a55ba70fdc62995303a81f48d35a4c131f7187df Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Mon, 22 Feb 2021 20:31:16 +0200 Subject: [PATCH] that was wrong, oops --- server/index.js | 3 ++- server/server.js | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/index.js b/server/index.js index 34813c5..5f7a9e9 100644 --- a/server/index.js +++ b/server/index.js @@ -12,7 +12,8 @@ Logger.initialize() const args = { dev: process.env.NODE_ENV !== 'production', - port: config.server.port + port: config.server.port, + host: config.server.host || 'localhost' } function spawnWorkers () { diff --git a/server/server.js b/server/server.js index 7fc78eb..d421410 100644 --- a/server/server.js +++ b/server/server.js @@ -91,9 +91,8 @@ module.exports = (args) => { app.use(routes) - const host = args.host || 'localhost' - app.listen(args.port, host, () => { - console.log('Listening on %s:%s', host, args.port) + app.listen(args.port, args.host, () => { + console.log('Listening on %s:%s', args.host, args.port) // Initialize the email transporter (if configured) initEmail()