Skip to content

Commit 7bf0f75

Browse files
committedJan 21, 2018
Changed host name
1 parent 11a92eb commit 7bf0f75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ app.set('port', (process.env.PORT || 5000));
1313
var db_url;
1414

1515
if (process.env.MONGODB_URI) db_url = process.env.MONGODB_URI;
16-
else db_url = config.db.host + ':' + config.db.port;
16+
else db_url = config.db.localhost + ':' + config.db.port;
1717

1818
console.log(db_url);
1919

‎config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ config.db = {};
44
// the URL shortening host - shortened URLs will be this + baseHash ID
55

66
// i.e.: http://localhost:5000/3Ys
7-
config.webhost = 'http://localhost:5000/';
7+
config.webhost = ' https://slash-url.herokuapp.com/';
88

99
// your MongoDB host and database name
10-
config.db.host = 'mongodb://localhost';
10+
config.db.localhost = 'mongodb://localhost';
1111
config.db.port = 27017;
1212
config.db.name = 'heroku_6srjdlq5';
1313
config.db.collections = ['urls', 'counters'];

0 commit comments

Comments
 (0)