File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ node_modules
20
20
.DS_Store
21
21
Thumbs.db
22
22
.problems
23
+ .env
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ var app = express();
37
37
/**
38
38
* Connect to MongoDB.
39
39
*/
40
- mongoose . connect ( config . db ) ;
40
+
41
+ mongoose . connect ( process . env . MONGOLAB_URI ) ;
41
42
mongoose . connection . on ( 'error' , function ( ) {
42
43
console . error ( 'MongoDB Connection Error. Make sure MongoDB is running.' ) ;
43
44
} ) ;
@@ -69,7 +70,7 @@ app.use(session({
69
70
saveUninitialized : true ,
70
71
secret : config . sessionSecret ,
71
72
store : new MongoStore ( {
72
- url : config . db ,
73
+ url : process . env . MONGOLAB_URI ,
73
74
auto_reconnect : true
74
75
} )
75
76
} ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
- "db" :
" mongodb://heroku_app31505046:[email protected] :53840/heroku_app31505046" ,
3
2
"sessionSecret" : " letthegamesbegin" ,
4
3
"adminHandles" : [
5
4
" jeffdonthemic" ,
6
5
" timhicks24" ,
7
6
" lazybaer" ,
8
- " mess"
7
+ " mess" ,
8
+ " nick.castillo"
9
9
],
10
10
"questions" : [
11
11
" Extent to which the application creatively uses the selected APIs and cloud platform." ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments