From 8f0d6260b07a3528b1f773f9fdfb29f8470de684 Mon Sep 17 00:00:00 2001 From: John Crepezzi Date: Thu, 27 Sep 2012 11:50:12 -0400 Subject: [PATCH] change how redistogo install works --- package.json | 1 + server.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f66f6dd..e8c552e 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "winston": "0.6.2", "connect": "1.9.2", "redis-url": "0.1.0", + "redis": "0.8.1", "uglify-js": "1.3.3" }, "devDependencies": { diff --git a/server.js b/server.js index 8556ba9..232757a 100644 --- a/server.js +++ b/server.js @@ -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);