File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ app.set('port', (process.env.PORT || 5000));
13
13
var db_url ;
14
14
15
15
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 ;
17
17
18
18
console . log ( db_url ) ;
19
19
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ config.db = {};
4
4
// the URL shortening host - shortened URLs will be this + baseHash ID
5
5
6
6
// i.e.: http://localhost:5000/3Ys
7
- config . webhost = 'http ://localhost:5000 /' ;
7
+ config . webhost = ' https ://slash-url.herokuapp.com /' ;
8
8
9
9
// your MongoDB host and database name
10
- config . db . host = 'mongodb://localhost' ;
10
+ config . db . localhost = 'mongodb://localhost' ;
11
11
config . db . port = 27017 ;
12
12
config . db . name = 'heroku_6srjdlq5' ;
13
13
config . db . collections = [ 'urls' , 'counters' ] ;
You can’t perform that action at this time.
0 commit comments