Get REDISCLOUD_URL from the getEnv

This commit is contained in:
Roman Mandeleil 2015-01-20 17:30:47 +02:00
parent e2570f7072
commit c449c25d57
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public class RedisPool {
try { try {
if (System.getProperty("REDISCLOUD_URL") != null){ if (System.getProperty("REDISCLOUD_URL") != null){
URI redisUri = new URI(System.getProperty("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(),
redisUri.getHost(), redisUri.getHost(),