Fix Sidekiq pooling issues. Remove API docs from homepage, replace with
a basic home timeline
This commit is contained in:
parent
bb98ee489d
commit
5764d52b04
6 changed files with 102 additions and 201 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue