title: Specify environment specific configuration with Sidekiq and plain Ruby
body: <p>I am trying to figure out how can you write specific Sidekiq configuration depending on the environment. I know that you can write in config/sidekiq.yml something like:</p>
  
  <pre><code>:concurrency: 5
  :verbose: false
  :pidfile: ./tmp/pids/sidekiq.pid
  :logfile: ./log/sidekiq.log
  :queues:
    - [carrierwave, 7]
    - [client_emails, 5]
    - [default, 3]
  staging:
    :concurrency: 10
  production:
    :concurrency: 25
  </code></pre>
  
  <p>However, right now and based on: <a href="https://github.com/mperham/sidekiq/blob/master/examples/por.rb" rel="nofollow">por.rb</a>, I would have the Redis configuration in that file. But the Redis address changes whether the Sidekiq is running in localhost or in Amazon. So my question is, in pure Ruby, how do you write specific configuration-environment files? I know in Rails you would write specific ones under <code>config/initializers/environment/sidekiq.rb</code>, but what about in pure Ruby?</p>