本文介绍了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再次运行以重新安装正确的版本

这篇关于Rails 4,Capistrano 3.0.0无法加载此类文件-部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 14:19