mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
new redis on heroku?!
This commit is contained in:
@@ -47,18 +47,13 @@ if (process.env.NODE_ENV !== 'production') {
|
||||
redisClient = createClient();
|
||||
TESTING = true;
|
||||
} else {
|
||||
const redisConfig = {
|
||||
password: process.env.REDIS_PASSWORD,
|
||||
redisClient = createClient({
|
||||
url: process.env.REDIS_URL,
|
||||
socket: {
|
||||
host: process.env.REDIS_URL,
|
||||
port: Number(process.env.REDIS_PORT)
|
||||
},
|
||||
tls: {
|
||||
tls: true,
|
||||
rejectUnauthorized: false
|
||||
}
|
||||
};
|
||||
console.log(redisConfig);
|
||||
redisClient = createClient(redisConfig);
|
||||
});
|
||||
}
|
||||
redisClient.connect().then(() => pp('Redis Connected'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user