Skip to content

Commit d4273d4

Browse files
Merge pull request #56 from ibm-cds-labs/issue55
Issue55 - Fix Cloudant plan name
2 parents 4c44eb8 + d2e30a6 commit d4273d4

File tree

5 files changed

+3
-32
lines changed

5 files changed

+3
-32
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ The application uses these Bluemix services:
1212

1313
* a Node.js runtime
1414
* a Cloudant database
15-
* a Redis in-memory database from Compose.io (Optional)
1615

1716
Once the data is uploaded, you can use the UI to browse and manage your data via the integrated CMS. Additionally, a CORS-enabled API endpoint is available at `<your domain name>/search`. The endpoint takes advantage of Cloudant's built-in integration for Lucene full-text indexing. Here's what you get:
1817

lib/credentials.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,4 @@ else if (typeof process.env.SSS_CLOUDANT_URL === 'string') {
2929
};
3030
}
3131

32-
/*******
33-
REDIS
34-
*******/
35-
36-
if (typeof process.env.SSS_REDIS_HOST === 'string') {
37-
console.log("Using local config for Redis");
38-
services["user-provided"] = [
39-
{
40-
name: "Redis by Compose",
41-
credentials: {
42-
public_hostname: process.env.SSS_REDIS_HOST,
43-
password: process.env.SSS_REDIS_PASSWORD || null
44-
}
45-
46-
}
47-
];
48-
49-
}
50-
5132
module.exports = services;

lib/sssenv.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,9 @@ else {
3737
cloudant.url += "/_utils/database.html?seams";
3838
}
3939

40-
var cacheservice = appEnv.getService("Redis by Compose") || {};
41-
var redis = {
42-
name: (cacheservice.name || null),
43-
username: cacheservice.credentials ? (cacheservice.credentials.username || null) : null,
44-
host: cacheservice.credentials ? (cacheservice.credentials.public_hostname || null) : null
45-
};
46-
4740
var sssenv = {
4841
application: app,
49-
storage: cloudant,
50-
cache: redis
42+
storage: cloudant
5143
};
5244

5345
module.exports = sssenv;

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
declared-services:
33
simple-search-service-cloudant-service:
44
label: cloudantNoSQLDB
5-
plan: Shared
5+
plan: Lite
66
applications:
77
- name: simple-search-service
88
path: .

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"body-parser": "^1.13.2",
1313
"cf-deployment-tracker-client": "^0.x",
1414
"cfenv": "1.0.x",
15-
"cloudant": "1.3.0",
15+
"cloudant": "1.6.2",
1616
"compression": "^1.5.1",
1717
"cors": "^2.7.1",
1818
"couchimport": "0.3.0",
@@ -23,7 +23,6 @@
2323
"passport": "^0.3.2",
2424
"passport-anonymous": "^1.0.1",
2525
"passport-http": "^0.3.0",
26-
"redis": "^0.12.1",
2726
"request": "^2.58.0",
2827
"socket.io": "^1.4.8",
2928
"underscore": "^1.8.3",

0 commit comments

Comments
 (0)