Get REDISCLOUD_URL from the getEnv

This commit is contained in:
Roman Mandeleil 2015-01-20 19:11:45 +02:00
parent ebd2496a26
commit 84859727c4
1 changed files with 1 additions and 1 deletions

View File

@ -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(),