Capistrano cap 部署在 ubuntu 10.10 上失败。使用 RVM 安装 Ruby
我通过 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:in
load' 来自/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:in
load_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:ingem_original_require': no such file
require'
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
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:152:inrequire'
load'
from Capfile:5:in
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:172:inload_from_file'
load'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:89:in
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:inload'
each'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:in
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:86:inload'
load_recipes'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:ineach'
load_recipes'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:65:in
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:31:inexecute!'
execute'
from /home/ryan/.rvm/gems/ruby-1.8.7-p334/gems/capistrano-2.5.19/lib/capistrano/cli/execute.rb:14:in
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你回落到1.8.7时,你安装了railsless-deploy gem吗?
When you fell back to 1.8.7, did you install the railsless-deploy gem?