Add $DEBUG_REDIS env var

This commit is contained in:
MICHAEL JACKSON 2017-08-26 17:44:50 -07:00
parent 50979bfca5
commit 7d34cc9b88
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
const redis = require('redis')
redis.debug_mode = process.env.DEBUG_REDIS != null
const RedisURL = process.env.OPENREDIS_URL || process.env.REDIS_URL || 'redis://localhost:6379'
const client = redis.createClient(RedisURL)