繁体   English   中英

Capistrano和捆绑器的导轨

[英]rails with capistrano and bundler

我在hostingrails.com上运行

* executing "cd /home/p712738r/apps/energynowtv.com/current &&  /usr/local/rvm/gems/ruby-1.9.2-p0/bin/bundle install vendor/gems"
    servers: ["energynowtv.com"]
    [energynowtv.com] executing command
 ** [out :: energynowtv.com] /usr/local/rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:762:in `report_activate_error': Could not find RubyGem bundler (>= 0) (Gem::LoadError)

为什么会发生? 谢谢大家

问题是(我认为)您同时安装了rvm和系统范围的ruby。 执行此命令时,将运行系统范围的捆绑程序版本(您可能已安装1.9.1),而不是rvm版本。

确保在deploy.rb文件中设置了rvm_ruby_string 这是我的:

require "rvm/capistrano" # Load RVM's capistrano plugin.
set :rvm_ruby_string, 'ree-1.8.7-2011.03@rails3' # Or whatever env you want it to run in.
set :rvm_type, :user

字符串'ree-1.8.7-2011.03@rails3'应与应用程序根目录中的.rvmrc中的字符串相同。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM