Rails 4,Capistrano 3.0.0无法加载此类文件-部署
问题描述:
我刚刚运行了捆绑包更新,并且capistrano已更新为3.0.0,但是现在当我运行cap 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
答
我必须运行 gem卸载capistrano
然后用 gem'capistrano','〜 > 2.15'
,然后使用 bundle update capistrano再次运行以重新安装正确的版本