diff options
author | Valery Sizov <valery@gitlab.com> | 2015-01-07 23:25:30 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-01-07 23:25:30 +0000 |
commit | 27a93550c96ee80cd60bc77cb3c2482885038f75 (patch) | |
tree | 0721779cb8bd9f1b6168c85f3b418a6d77346008 | |
parent | 267edb0626249072a4f629f8a1467b95ff72b1dd (diff) | |
parent | 0558aed7f22da479aa672d00f9c8960a4bf6f5b3 (diff) | |
download | gitlab-ci-4-3-stable.tar.gz |
Merge branch 'gitlab-org/gitlab-ci#9' into '4-3-stable'4-3-stable
Support unix sockets for redis connection in sidekiq in branch 4-3-stable
Backward incompatibility regarding config/resque.yml - the schema is required now.
Because of this patch makes it behaving the same way it works in gitlab-ce, I think it is fair enough to handle it here similarly.
See merge request !4
-rw-r--r-- | config/initializers/3_sidekiq.rb | 8 | ||||
-rw-r--r-- | config/resque.yml.example | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/config/initializers/3_sidekiq.rb b/config/initializers/3_sidekiq.rb index c2d380f..bd33b46 100644 --- a/config/initializers/3_sidekiq.rb +++ b/config/initializers/3_sidekiq.rb @@ -4,19 +4,19 @@ config_file = Rails.root.join('config', 'resque.yml') resque_url = if File.exists?(config_file) YAML.load_file(config_file)[Rails.env] else - "localhost:6379" + "redis://localhost:6379" end Sidekiq.configure_server do |config| config.redis = { - url: "redis://#{resque_url}", + url: resque_url, namespace: 'resque:gitlab_ci' } end Sidekiq.configure_client do |config| config.redis = { - url: "redis://#{resque_url}", + url: resque_url, namespace: 'resque:gitlab_ci' } -end +end
\ No newline at end of file diff --git a/config/resque.yml.example b/config/resque.yml.example index cd3d487..7c216c0 100644 --- a/config/resque.yml.example +++ b/config/resque.yml.example @@ -1,3 +1,3 @@ -development: localhost:6379 -test: localhost:6379 -production: redis.example.com:6379 +development: redis://localhost:6379 +test: redis://localhost:6379 +production: redis://redis.example.com:6379
\ No newline at end of file |