From 96499fd793f2afdc1536f04fa43ce13317170c57 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Mon, 22 Jun 2020 17:03:15 +0100 Subject: [PATCH] Add host address configuration --- server.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server.js b/server.js index e7ca2b0..e0caf14 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,4 @@ const app = require('./app'); const config = require('config'); -const util = require('util'); -module.exports = app.listen(process.env.PORT || config.port || 3000, function() { - util.log('Server started: http://localhost:%s/', this.address().port); -}); +module.exports = app.listen(process.env.PORT || config.port, process.env.HOST || config.host);