title: Rails, Sidekiq & Unicorn
body: <p>I am having some problems getting Sidekiq to run on my VPS. Everything works fine locally but once I deploy I get the following error in my unicorn log:</p>
  
  <pre><code>E, [2012-09-18T21:41:19.670672 #1308] ERROR -- : uninitialized constant MailchimpWorker::Sidekiq (NameError)
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
  /home/deployer/production/releases/20120919013128/app/workers/mailchimp_worker.rb:3:in `&lt;class:MailchimpWorker&gt;'
  /home/deployer/production/releases/20120919013128/app/workers/mailchimp_worker.rb:1:in `&lt;top (required)&gt;'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in &lt;module:Finisher&gt;'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
  /home/deployer/production/releases/20120919013128/config/environment.rb:5:in `&lt;top (required)&gt;'
  config.ru:4:in `require'
  config.ru:4:in `block in &lt;main&gt;'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
  /home/deployer/production/shared/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `&lt;main&gt;'
  </code></pre>
  
  <p>Here is the contents of my worker file:</p>
  
  <pre><code>class MailchimpWorker
  
    include Sidekiq::Worker
  
    LIST_ID = '844161948b'
  
    def perform(email)
      Gibbon.listSubscribe id: LIST_ID, email_address: email
    end
  
  end
  </code></pre>
  
  <p>Any ideas as to what I'm doing wrong?</p>