Skip to content

Commit c23ca41

Browse files
authored
Fix redis connection url (#450)
* Fix redis connection url * Update Gemfile.lock
1 parent 77d6f18 commit c23ca41

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
stealth (2.1.0)
4+
stealth (2.1.1)
55
activesupport (~> 7.0)
66
connection_pool (~> 2.4)
77
multi_json (~> 1.12)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0
1+
2.1.1

lib/stealth/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class RedisConfig
88
attr_accessor :url, :pool_size, :pool_timeout
99

1010
def initialize
11-
@url = Stealth.env.development? ? "redis://localhost:6379/0" : ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"]
11+
@url = ENV["STEALTH_REDIS_URL"] || ENV["REDIS_URL"] || "redis://localhost:6379/0"
1212
@pool_size = Integer(ENV["STEALTH_REDIS_POOL"] || 5)
1313
@pool_timeout = Integer(ENV["STEALTH_REDIS_TIMEOUT"] || 5)
1414
end

0 commit comments

Comments
 (0)