Commit 8d2fb09c authored by Valery Sizov's avatar Valery Sizov

Proper redis connection for GitLab Geo

parent 3eeb6431
......@@ -86,15 +86,7 @@ module Gitlab
end
def self.redis_connection
redis_config_file = Rails.root.join('config', 'resque.yml')
redis_url_string = if File.exist?(redis_config_file)
YAML.load_file(redis_config_file)[Rails.env][:url]
else
'redis://localhost:6379'
end
::Redis::Namespace.new(NAMESPACE, redis: ::Redis.new(url: redis_url_string))
::Redis::Namespace.new(NAMESPACE, redis: ::Redis.new(url: Gitlab::Redis.url))
end
def self.redis
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment