Skip to content

Commit c9b05ba

Browse files
committed
feat(gen:cloudfoundry): disable cf deploy tests (for travis) and clean up for JavaScript Code Style checker
1 parent d73b573 commit c9b05ba

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: Gruntfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ module.exports = function (grunt) {
6666
mochaTest: {
6767
test: {
6868
src: [
69-
'test/*.js'
69+
'test/*.js',
70+
'!test/cf-test-creation.js'
7071
],
7172
options: {
7273
reporter: 'spec',

Diff for: app/templates/server/config/environment/production.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
// cloud foundry
77
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;
1212
}
1313
return mongoUri;
1414
};
@@ -34,4 +34,4 @@ module.exports = {
3434
getCfMongo() ||
3535
'mongodb://localhost/<%= _.slugify(appname) %>'
3636
}
37-
};
37+
};

0 commit comments

Comments
 (0)