5

While upgrading the app's rails version to 4.1, I have upgraded all gems with "bundle update"

But after upgrading, my Capistrano script was failing with the following error,

cap aborted!
LoadError: cannot load such file -- sidekiq/capistrano
Jai Chauhan
  • 4,035
  • 3
  • 36
  • 62
Rahul Chaudhari
  • 2,230
  • 21
  • 29

2 Answers2

16

With "bundle update", sidekiq gem also get updated to 3.0.0

In sidekiq 3.0.0, capistrano integrated support has been removed.

Instead, we can use capistrano-sidekiq gem. Add gem into Gemfile and do bundle install

gem "capistrano-sidekiq"

and replace "require 'sidekiq/capistrano'" in Capfile with

require 'capistrano/sidekiq'
Jai Chauhan
  • 4,035
  • 3
  • 36
  • 62
Rahul Chaudhari
  • 2,230
  • 21
  • 29
8

I had this same problem when I ran cap production deploy

My solution:

bundle exec cap production deploy
ianrandmckenzie
  • 472
  • 3
  • 12