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

Added postgres adapter

This commit is contained in:
John Crepezzi
2014-06-09 16:50:43 -04:00
parent 447d0aae76
commit ab029eae2f
3 changed files with 66 additions and 61 deletions

View File

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