lib/caploy/templates/unicorn/unicorn.rb.erb in caploy-0.1.2 vs lib/caploy/templates/unicorn/unicorn.rb.erb in caploy-0.1.3
- old
+ new
@@ -29,6 +29,12 @@
after_fork do |server, worker|
# Start up the database connection again in the worker
if defined?(ActiveRecord::Base)
ActiveRecord::Base.establish_connection
end
+
+ if defined?(Sidekiq)
+ Sidekiq.configure_client do |config|
+ config.redis = { :size => <%= sidekiq_redis_count %> }
+ end
+ end
end
\ No newline at end of file