Get REDISCLOUD_URL from the getEnv
This commit is contained in:
parent
ebd2496a26
commit
84859727c4
|
@ -24,7 +24,7 @@ public class RedisPool {
|
||||||
static {
|
static {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (System.getProperty("REDISCLOUD_URL") != null){
|
if (System.getenv("REDISCLOUD_URL") != null){
|
||||||
URI redisUri = new URI(System.getenv("REDISCLOUD_URL"));
|
URI redisUri = new URI(System.getenv("REDISCLOUD_URL"));
|
||||||
logger.info("Init redis pool: " + redisUri.toString());
|
logger.info("Init redis pool: " + redisUri.toString());
|
||||||
pool = new JedisPool(new JedisPoolConfig(),
|
pool = new JedisPool(new JedisPoolConfig(),
|
||||||
|
|
Loading…
Reference in New Issue