Skip to content
Browse files

Use RESOLVER_REDIS_URL or REDIS_URL environment variables as default …

…config if available.
  • Loading branch information...
1 parent 55f5bef commit da5fe5a63a07bace622f4fd04dacb6074a861031 @niho niho committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/related.rb
  2. +1 −1 lib/related/version.rb
View
2 lib/related.rb
@@ -46,7 +46,7 @@ def redis=(server)
# create a new one.
def redis
return @redis if @redis
- self.redis = 'localhost:6379'
+ self.redis = ENV['RELATED_REDIS_URL'] || ENV['REDIS_URL'] || 'localhost:6379'
self.redis
end
View
2 lib/related/version.rb
@@ -1,3 +1,3 @@
module Related
- Version = VERSION = '0.6.2'
+ Version = VERSION = '0.6.3'
end

0 comments on commit da5fe5a

Please sign in to comment.
Something went wrong with that request. Please try again.