Rails 4, Capistrano 3.0.0, cannot load such file -- deploy

markhorrocks picture markhorrocks · Oct 8, 2013 · Viewed 26.1k times · Source

I just ran bundle update and capistrano got updated to 3.0.0 but now when I run cap deploy I get an error and can't figure out how to fix this. I have been updating my server every day without problem until this update.

cap aborted!
cannot load such file -- deploy
/home/mark/rails_apps/myapp/Capfile:1:in `load'
/home/mark/rails_apps/myapp/Capfile:1:in `<top (required)>'

capfile

load 'deploy'
load 'deploy/assets'
load 'config/deploy' # remove this line to skip loading any of the default tasks

Answer

markhorrocks picture markhorrocks · Oct 8, 2013

I had to gem uninstall capistrano and selected version 3.0.0

(i.e. downgraded the gem to 2.x)