Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 
like image 656
markhorrocks Avatar asked Oct 08 '13 12:10

markhorrocks


2 Answers

I had to gem uninstall capistrano and selected version 3.0.0

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

like image 150
markhorrocks Avatar answered Oct 11 '22 00:10

markhorrocks


I had to run gem uninstall capistrano

then update the gemfile with gem 'capistrano', '~> 2.15'

and then run to reinstall the correct version again with bundle update capistrano

like image 38
pastullo Avatar answered Oct 11 '22 00:10

pastullo