lib/soulmate.rb in soulmate-0.1.1 vs lib/soulmate.rb in soulmate-0.1.2
- old
+ new
@@ -21,10 +21,10 @@
redis
end
def redis
@redis ||= (
- url = URI(@redis_url || "redis://127.0.0.1:6379/0")
+ url = URI(@redis_url || ENV["REDIS_URL"] || "redis://127.0.0.1:6379/0")
::Redis.new({
:host => url.host,
:port => url.port,
:db => url.path[1..-1],