Commit c56d33e1 authored by Ruben Davila's avatar Ruben Davila

Use the adequate key to read Redis connection URL.

The format of the `config/resque.yml.example` file has changed and we
need to adjust the reading of the connection URL.
parent 9d713a8f
...@@ -89,7 +89,7 @@ module Gitlab ...@@ -89,7 +89,7 @@ module Gitlab
redis_config_file = Rails.root.join('config', 'resque.yml') redis_config_file = Rails.root.join('config', 'resque.yml')
redis_url_string = if File.exist?(redis_config_file) redis_url_string = if File.exist?(redis_config_file)
YAML.load_file(redis_config_file)[Rails.env] YAML.load_file(redis_config_file)[Rails.env][:url]
else else
'redis://localhost:6379' 'redis://localhost:6379'
end end
......
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