File tree 2 files changed +7
-6
lines changed
app/templates/server/config/environment
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ module.exports = function (grunt) {
66
66
mochaTest : {
67
67
test : {
68
68
src : [
69
- 'test/*.js'
69
+ 'test/*.js' ,
70
+ '!test/cf-test-creation.js'
70
71
] ,
71
72
options : {
72
73
reporter : 'spec' ,
Original file line number Diff line number Diff line change 5
5
6
6
// cloud foundry
7
7
var getCfMongo = function ( ) {
8
- var vcap_services = JSON . parse ( process . env . VCAP_SERVICES ) ,
9
- mongoUri ;
10
- if ( vcap_services . mongolab && vcap_services . mongolab . length > 0 ) {
11
- mongoUri = vcap_services . mongolab [ 0 ] . credentials . uri ;
8
+ var vcapServices = JSON . parse ( process . env . vcapServices ) ;
9
+ var mongoUri ;
10
+ if ( vcapServices . mongolab && vcapServices . mongolab . length > 0 ) {
11
+ mongoUri = vcapServices . mongolab [ 0 ] . credentials . uri ;
12
12
}
13
13
return mongoUri ;
14
14
} ;
@@ -34,4 +34,4 @@ module.exports = {
34
34
getCfMongo ( ) ||
35
35
'mongodb://localhost/<%= _.slugify(appname) %>'
36
36
}
37
- } ;
37
+ } ;
You can’t perform that action at this time.
0 commit comments