Re work
This commit is contained in:
parent
1209271cd4
commit
7e8dad9b38
4
app.js
4
app.js
@ -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}`);
|
||||||
});
|
});
|
||||||
|
@ -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';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user