Use OpenRedis
This commit is contained in:
parent
141e440b94
commit
bb3e73918a
|
@ -13,7 +13,7 @@ const {
|
|||
|
||||
const CloudflareEmail = process.env.CLOUDFLARE_EMAIL
|
||||
const CloudflareKey = process.env.CLOUDFLARE_KEY
|
||||
const RedisURL = process.env.REDIS_URL
|
||||
const RedisURL = process.env.OPENREDIS_URL
|
||||
|
||||
invariant(
|
||||
CloudflareEmail,
|
||||
|
@ -27,7 +27,7 @@ invariant(
|
|||
|
||||
invariant(
|
||||
RedisURL,
|
||||
'Missing the $REDIS_URL environment variable'
|
||||
'Missing the $OPENREDIS_URL environment variable'
|
||||
)
|
||||
|
||||
/**
|
||||
|
|
|
@ -10,7 +10,7 @@ const {
|
|||
|
||||
const CloudflareEmail = process.env.CLOUDFLARE_EMAIL
|
||||
const CloudflareKey = process.env.CLOUDFLARE_KEY
|
||||
const RedisURL = process.env.REDIS_URL
|
||||
const RedisURL = process.env.OPENREDIS_URL
|
||||
|
||||
invariant(
|
||||
CloudflareEmail,
|
||||
|
@ -24,7 +24,7 @@ invariant(
|
|||
|
||||
invariant(
|
||||
RedisURL,
|
||||
'Missing the $REDIS_URL environment variable'
|
||||
'Missing the $OPENREDIS_URL environment variable'
|
||||
)
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
const redis = require('redis')
|
||||
const invariant = require('invariant')
|
||||
|
||||
const RedisURL = process.env.REDIS_URL
|
||||
const RedisURL = process.env.OPENREDIS_URL
|
||||
|
||||
invariant(
|
||||
RedisURL,
|
||||
'Missing the $REDIS_URL environment variable'
|
||||
'Missing the $OPENREDIS_URL environment variable'
|
||||
)
|
||||
|
||||
const db = redis.createClient(RedisURL)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
const redis = require('redis')
|
||||
const invariant = require('invariant')
|
||||
|
||||
const RedisURL = process.env.REDIS_URL
|
||||
const RedisURL = process.env.OPENREDIS_URL
|
||||
|
||||
invariant(
|
||||
RedisURL,
|
||||
'Missing $REDIS_URL environment variable'
|
||||
'Missing $OPENREDIS_URL environment variable'
|
||||
)
|
||||
|
||||
const db = redis.createClient(RedisURL)
|
||||
|
|
Loading…
Reference in New Issue