added redis auth

This commit is contained in:
Larry 2017-07-01 20:29:54 -04:00 committed by GitHub
parent f6966534ff
commit c74724c19a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,6 @@ module.exports = function(logger){
var keyScriptTemplate = '';
var keyScriptProcessed = '';
var processTemplates = function(){
for (var pageName in pageTemplates){
@ -135,6 +134,7 @@ module.exports = function(logger){
async.waterfall([
function(callback){
var client = redis.createClient(portalConfig.redis.port, portalConfig.redis.host);
client.auth(portalConfig.redis.password);
client.hgetall('coinVersionBytes', function(err, coinBytes){
if (err){
client.quit();