Rails 4, Capistrano 3.0.0, 无法加载此类文件 -- deploy [英] Rails 4, Capistrano 3.0.0, cannot load such file -- deploy

查看:27
本文介绍了Rails 4, Capistrano 3.0.0, 无法加载此类文件 -- deploy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚运行了 bundle update 并且 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)>'

大头文件

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

推荐答案

我不得不跑gem 卸载 capistrano

然后更新 gemfilegem 'capistrano', '~>2.15'

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

然后运行以再次重新安装正确的版本捆绑更新 capistrano

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

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

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆