From 7e8dad9b381d9ef6e315321efee32d201b1173ef Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Sat, 5 Aug 2017 21:23:02 +0100 Subject: [PATCH] Re work --- app.js | 4 ++-- config.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 42938b1..383d5c3 100644 --- a/app.js +++ b/app.js @@ -88,6 +88,6 @@ app.get('/:encoded_id', function(req, res){ }); -const server = app.listen(3000, function () { - logger.info('Server listening on port 3000'); +const server = app.listen(config.port, function () { + logger.info(`Server listening on port ${config.port}`); }); diff --git a/config.js b/config.js index fc11139..c174262 100644 --- a/config.js +++ b/config.js @@ -1,7 +1,8 @@ const config = {}; config.db = {}; -config.webhost = 'http://localhost:3000/'; +config.webhost = 'http://nurl.co/'; +config.port = 7000; config.db.host = 'localhost'; config.db.name = 'url_shortener';