Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewilkins committed Mar 18, 2013
1 parent 15e6f9d commit 1835aca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/unicorn.rb
Expand Up @@ -55,7 +55,10 @@
after_fork do |server, worker|

Sidekiq.configure_client do |config|
config.redis = { :size => 1 }
rails_root = Rails.root || File.dirname(__FILE__) + '/../..'
redis_config = YAML.load_file(rails_root.to_s + '/config/redis.yml')
rails_env = Rails.env || 'production'
config.redis = { :url => redis_config[rails_env], :namespace => 'reader' }
end

# the following is *required* for Rails + "preload_app true",
Expand Down

0 comments on commit 1835aca

Please sign in to comment.