Skip to content
代码片段 群组 项目
提交 52bf5b0e 编辑于 作者: Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
浏览文件

Merge pull request #3159 from peikk0/allow-redis-via-socket

Allow connection to Redis via unix socket
No related branches found
No related tags found
无相关合并请求
......@@ -4,19 +4,19 @@
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
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
......@@ -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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册