lib/caploy/templates/unicorn/unicorn.rb.erb in caploy-0.1.7 vs lib/caploy/templates/unicorn/unicorn.rb.erb in caploy-0.1.8
- old
+ new
@@ -36,9 +36,13 @@
ActiveRecord::Base.establish_connection
end
if defined?(Sidekiq)
Sidekiq.configure_client do |config|
+ <% if sidekiq_redis_url %>
+ config.redis = { :url => <%= sidekiq_redis_url %>, :size => <%= sidekiq_redis_count %> }
+ <% else %>
config.redis = { :size => <%= sidekiq_redis_count %> }
+ <% end %>
end
end
end
\ No newline at end of file