mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Fix url
This commit is contained in:
parent
07a24f4290
commit
57e234134e
@ -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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user