This commit is contained in:
Martin Donnelly 2017-08-05 21:23:02 +01:00
parent 1209271cd4
commit 7e8dad9b38
2 changed files with 4 additions and 3 deletions

4
app.js
View File

@ -88,6 +88,6 @@ app.get('/:encoded_id', function(req, res){
}); });
const server = app.listen(3000, function () { const server = app.listen(config.port, function () {
logger.info('Server listening on port 3000'); logger.info(`Server listening on port ${config.port}`);
}); });

View File

@ -1,7 +1,8 @@
const config = {}; const config = {};
config.db = {}; config.db = {};
config.webhost = 'http://localhost:3000/'; config.webhost = 'http://nurl.co/';
config.port = 7000;
config.db.host = 'localhost'; config.db.host = 'localhost';
config.db.name = 'url_shortener'; config.db.name = 'url_shortener';