File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 2
2
CLOUDANT
3
3
*******/
4
4
5
- // VCAP_SERVICES
6
- // This is Bluemix configuration
7
- if ( typeof process . env . VCAP_SERVICES === 'string' ) {
8
- console . log ( "Using Bluemix config for Cloudant" ) ;
9
- var services = process . env . VCAP_SERVICES ;
10
- if ( typeof services !== 'undefined' ) {
11
- services = JSON . parse ( services ) ;
12
- }
13
- }
14
-
15
- // SSS_CLOUDANT_URL
16
- // Local deploy cloudant configuration
17
- // URL format: https://<username>:<password>@<hostname>
18
- else if ( typeof process . env . SSS_CLOUDANT_URL === 'string' ) {
5
+ if ( typeof process . env . SSS_CLOUDANT_URL === 'string' ) {
19
6
console . log ( "Using local config for Cloudant" ) ;
20
7
var services = {
21
8
"cloudantNoSQLDB" : [ {
@@ -29,4 +16,14 @@ else if (typeof process.env.SSS_CLOUDANT_URL === 'string') {
29
16
} ;
30
17
}
31
18
19
+ // VCAP_SERVICES
20
+ // This is Bluemix configuration
21
+ else if ( typeof process . env . VCAP_SERVICES === 'string' ) {
22
+ console . log ( "Using Bluemix config for Cloudant" ) ;
23
+ var services = process . env . VCAP_SERVICES ;
24
+ if ( typeof services !== 'undefined' ) {
25
+ services = JSON . parse ( services ) ;
26
+ }
27
+ }
28
+
32
29
module . exports = services ;
You can’t perform that action at this time.
0 commit comments