use redis host from config

This commit is contained in:
Danny Coates 2017-06-07 16:46:48 -07:00
parent a4437a341e
commit 1c67eea2f0
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,9 @@ const fetch = require('node-fetch');
const crypto = require('crypto');
const redis = require('redis');
const redis_client = redis.createClient();
const redis_client = redis.createClient({
host: conf.redis_host
});
redis_client.on('error', err => {
console.log(err);