diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -194,6 +194,7 @@ app.use(function (err, req, res, next) { | |||
194 | 194 | ||
195 | async function startApplication () { | 195 | async function startApplication () { |
196 | const port = CONFIG.LISTEN.PORT | 196 | const port = CONFIG.LISTEN.PORT |
197 | const hostname = CONFIG.LISTEN.HOSTNAME | ||
197 | 198 | ||
198 | await installApplication() | 199 | await installApplication() |
199 | 200 | ||
@@ -214,7 +215,7 @@ async function startApplication () { | |||
214 | Redis.Instance.init() | 215 | Redis.Instance.init() |
215 | 216 | ||
216 | // Make server listening | 217 | // Make server listening |
217 | server.listen(port) | 218 | server.listen(port, hostname) |
218 | logger.info('Server listening on port %d', port) | 219 | logger.info('Server listening on %s:%d', hostname, port) |
219 | logger.info('Web server: %s', CONFIG.WEBSERVER.URL) | 220 | logger.info('Web server: %s', CONFIG.WEBSERVER.URL) |
220 | } | 221 | } |