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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user