mirror of
https://github.com/Discreetly/server.git
synced 2026-04-17 03:00:55 -04:00
redis on heroku setup
This commit is contained in:
@@ -45,7 +45,13 @@ let TESTGROUPID: BigInt;
|
||||
// TODO get the claim code manager working with redis to store the state of the rooms and claim codes in a redis database that persists across server restarts
|
||||
// Redis
|
||||
|
||||
const redisClient = createClient({ url: REDIS_URL });
|
||||
const redisClient = createClient({
|
||||
password: '<password>',
|
||||
socket: {
|
||||
host: 'redis-18525.c232.us-east-1-2.ec2.cloud.redislabs.com',
|
||||
port: 18525
|
||||
}
|
||||
});
|
||||
redisClient.connect().then(() => pp('Redis Connected'));
|
||||
|
||||
redisClient.get('rooms').then((rooms) => {
|
||||
|
||||
Reference in New Issue
Block a user