mirror of
https://github.com/seejohnrun/haste-server.git
synced 2024-11-01 03:21:21 +00:00
change how redistogo install works
This commit is contained in:
parent
93a83a35da
commit
8f0d6260b0
2 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
||||||
"winston": "0.6.2",
|
"winston": "0.6.2",
|
||||||
"connect": "1.9.2",
|
"connect": "1.9.2",
|
||||||
"redis-url": "0.1.0",
|
"redis-url": "0.1.0",
|
||||||
|
"redis": "0.8.1",
|
||||||
"uglify-js": "1.3.3"
|
"uglify-js": "1.3.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -36,7 +36,8 @@ if (!config.storage.type) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var Store, preferredStore;
|
var Store, preferredStore;
|
||||||
if (config.storage.type === 'redistogo') {
|
|
||||||
|
if (process.env.REDISTOGO_URL) {
|
||||||
var redisClient = require('redis-url').connect(process.env.REDISTOGO_URL);
|
var redisClient = require('redis-url').connect(process.env.REDISTOGO_URL);
|
||||||
Store = require('./lib/document_stores/redis');
|
Store = require('./lib/document_stores/redis');
|
||||||
preferredStore = new Store(config.storage, redisClient);
|
preferredStore = new Store(config.storage, redisClient);
|
||||||
|
|
Loading…
Reference in a new issue