1
0
mirror of https://github.com/seejohnrun/haste-server.git synced 2025-12-13 03:05:55 +00:00

change how redistogo install works

This commit is contained in:
John Crepezzi
2012-09-27 11:50:12 -04:00
parent 93a83a35da
commit 8f0d6260b0
2 changed files with 3 additions and 1 deletions

View File

@@ -36,7 +36,8 @@ if (!config.storage.type) {
}
var Store, preferredStore;
if (config.storage.type === 'redistogo') {
if (process.env.REDISTOGO_URL) {
var redisClient = require('redis-url').connect(process.env.REDISTOGO_URL);
Store = require('./lib/document_stores/redis');
preferredStore = new Store(config.storage, redisClient);