about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/database.yml2
-rw-r--r--config/initializers/sidekiq.rb9
2 files changed, 5 insertions, 6 deletions
diff --git a/config/database.yml b/config/database.yml
index 6dbea4e04..da88c65a0 100644
--- a/config/database.yml
+++ b/config/database.yml
@@ -1,6 +1,6 @@
 default: &default
   adapter: postgresql
-  pool: 10
+  pool: 15
   timeout: 5000
   encoding: unicode
 
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index d9eed4a9d..153173974 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -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