Capistrano cap 部署在 ubuntu 10.10 上失败。使用 RVM 安装 Ruby

发布于 2024-10-18 13:08:11 字数 2396 浏览 4 评论 0原文

我通过 RVM 安装了 ruby​​ 1.9.2 以及 webby 和 capistrano gems。 Webby 不适用于 1.9.2,因此我通过 RVM 备份到 ruby​​ 1.8.7,将其设置为默认值,webby 更好。

当在这个以前运行的站点(对于其他人)上运行cap deploy时,我得到以下信息:

ryan@ruby1:~/projects/cincinnati-agile-conference$ 上限部署 /home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_require':没有这样的文件 加载——railsless-deploy (加载错误) 来自 /home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in 需要' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:152:in 需要' 来自 Capfile:5:inload' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:172:in 从文件加载' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:89:in 加载' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in <代码>加载' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in每个' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in <代码>加载' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in load_recipes' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in 每个' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:inload_recipes' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:31:in 执行!' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:14:in 执行' 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/bin/cap:4 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19:in ‘负载’ 来自/home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19

Google-fu 引导我建议不要使用 ruby​​ 包,但我使用了 RVM。

I installed ruby 1.9.2 via RVM as well as the webby and capistrano gems. Webby doesn't work with 1.9.2 so I backed up to ruby 1.8.7 via RVM set it to default and webby is better.

When running cap deploy on this previously functioning site (for someone else) I get the following:

ryan@ruby1:~/projects/cincinnati-agile-conference$
cap deploy
/home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
gem_original_require': no such file
to load -- railsless-deploy
(LoadError)
from /home/ryan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
require'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:152:in
require'
from Capfile:5:in
load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:172:in
load_from_file'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:89:in
load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in
load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in
each'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in
load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
load_recipes'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
each'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
load_recipes'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:31:in
execute!'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:14:in
execute'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/bin/cap:4
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19:in
`load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/bin/cap:19

Google-fu leads me to suggestions not to use ruby packages, but I used RVM.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福还没到 2024-10-25 13:08:11

当你回落到1.8.7时,你安装了railsless-deploy gem吗?

When you fell back to 1.8.7, did you install the railsless-deploy gem?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文