Skip to content

Commit

Permalink
Added Redis environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
crock committed Dec 8, 2018
1 parent 9f41af9 commit 8228915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function checkAuthKey(req, res, next) {
}
}

let cacheWithRedis = apicache.options({ redisClient: redis.createClient() }).middleware;
let cacheWithRedis = apicache.options({ redisClient: redis.createClient(process.env.REDIS_URL) }).middleware;

/* GET root api endpoint */
router.get('/', goToDocs);
Expand Down

0 comments on commit 8228915

Please sign in to comment.