diff --git a/Gemfile.lock b/Gemfile.lock index 9c161c2..2a5db82 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - stealth (2.1.0) + stealth (2.1.1) activesupport (~> 7.0) connection_pool (~> 2.4) multi_json (~> 1.12) diff --git a/VERSION b/VERSION index 7ec1d6d..3e3c2f1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0 +2.1.1 diff --git a/lib/stealth/redis.rb b/lib/stealth/redis.rb index 36d310f..9d1f81c 100644 --- a/lib/stealth/redis.rb +++ b/lib/stealth/redis.rb @@ -8,7 +8,7 @@ class RedisConfig attr_accessor :url, :pool_size, :pool_timeout def initialize - @url = Stealth.env.development? ? "redis://localhost:6379/0" : ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"] + @url = ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"] || "redis://localhost:6379/0" @pool_size = Integer(ENV["STEALTH_REDIS_POOL"] || 5) @pool_timeout = Integer(ENV["STEALTH_REDIS_TIMEOUT"] || 5) end