mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 19:10:38 +02:00
Fix url
This commit is contained in:
@@ -4,7 +4,7 @@ var redis = null;
|
||||
|
||||
function connect_redis() {
|
||||
console.log("connecting to redis");
|
||||
if (process.env.REDISTOGO_URL) {
|
||||
if (process.env.REDISCLOUD_URL) {
|
||||
var redisURL = require("url").parse(process.env.REDISCLOUD_URL);
|
||||
redis = require("redis").createClient(redisURL.port, redisURL.hostname);
|
||||
redis.auth(redisURL.auth.split(":")[1]);
|
||||
|
||||
Reference in New Issue
Block a user