File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " goof" ,
3
- "scripts" : {
4
- },
3
+ "description" : " A Snyk vulnerable Goof app on Heroku" ,
4
+ "repository" : " https://github.com/snyk/goof" ,
5
+ "logo" : " https://snyk.io/wp-content/uploads/title-card-avatar.png" ,
6
+ "keywords" : [
7
+ " snyk" ,
8
+ " goof" ,
9
+ " heroku" ,
10
+ " node" ,
11
+ " security" ,
12
+ " vulnerabilities"
13
+ ],
14
+ "image" : " heroku/nodejs" ,
15
+ "scripts" : {},
5
16
"env" : {
6
17
"MONGOLAB_URI" : {
7
18
"required" : true
20
31
"url" : " heroku/nodejs"
21
32
}
22
33
]
23
- }
34
+ }
Original file line number Diff line number Diff line change @@ -35,7 +35,11 @@ if (mongoCFUri) {
35
35
} else if ( process . env . MONGOLAB_URI ) {
36
36
// Generic (plus Heroku) env var support
37
37
mongoUri = process . env . MONGOLAB_URI ;
38
+ } else if ( process . env . MONGODB_URI ) {
39
+ // Generic (plus Heroku) env var support
40
+ mongoUri = process . env . MONGODB_URI ;
38
41
}
42
+
39
43
console . log ( "Using Mongo URI " + mongoUri ) ;
40
44
41
45
mongoose . connect ( mongoUri ) ;
You can’t perform that action at this time.
0 commit comments