0
0
Fork 0

Fix Sidekiq pooling issues. Remove API docs from homepage, replace with

a basic home timeline
This commit is contained in:
Eugen Rochko 2016-03-25 16:10:14 +01:00
parent bb98ee489d
commit 5764d52b04
6 changed files with 102 additions and 201 deletions

View file

@ -1,11 +1,10 @@
redis_conn = proc {
$redis.dup
}
host = ENV['REDIS_HOST'] || 'localhost'
port = ENV['REDIS_PORT'] || 6379
Sidekiq.configure_server do |config|
config.redis = ConnectionPool.new(size: 5, &redis_conn)
config.redis = { host: host, port: port }
end
Sidekiq.configure_client do |config|
config.redis = ConnectionPool.new(size: 5, &redis_conn)
config.redis = { host: host, port: port }
end