diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-06 22:43:13 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-06 22:43:13 -0800 |
commit | 52bf5b0e78edeb1acc8254b00ba164d48a88f39e (patch) | |
tree | 60ab0ce2afe0760cf90983e95285b30f33a62e61 | |
parent | 1c2a7bc3cd087b6a5b0dde464f301e3422782f92 (diff) | |
parent | 67a61c80d161582aefae82a6784356c910940751 (diff) | |
download | gitlab-ce-52bf5b0e78edeb1acc8254b00ba164d48a88f39e.tar.gz |
Merge pull request #3159 from peikk0/allow-redis-via-socket
Allow connection to Redis via unix socket
-rw-r--r-- | config/initializers/4_sidekiq.rb | 6 | ||||
-rw-r--r-- | config/resque.yml.example | 6 | ||||
-rw-r--r-- | doc/install/installation.md | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/config/initializers/4_sidekiq.rb b/config/initializers/4_sidekiq.rb index 6abe6e74fa0..c90d376273d 100644 --- a/config/initializers/4_sidekiq.rb +++ b/config/initializers/4_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' } end Sidekiq.configure_client do |config| config.redis = { - url: "redis://#{resque_url}", + url: resque_url, namespace: 'resque:gitlab' } end diff --git a/config/resque.yml.example b/config/resque.yml.example index cd3d487408a..3c7ad0e5778 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 diff --git a/doc/install/installation.md b/doc/install/installation.md index d0f586af6b4..51a8dcfb876 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -288,7 +288,7 @@ a different host, you can configure its connection string via the `config/resque.yml` file. # example - production: redis.example.tld:6379 + production: redis://redis.example.tld:6379 ## Custom SSH Connection |