2011-05-13 89 views
0

我对hostingrails.com轨与Capistrano的和捆绑

* 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) 

为什么会发生运行? 谢谢你所有的你

回答

0

问题是(我认为),你有rvm和系统的红宝石安装。 此命令在执行时会运行bundler的系统版本(可能安装了1.9.1)而不是rvm。

0

确保您将rvm_ruby_string设置为deploy.rb文件。这里是我的:

require "rvm/capistrano" # Load RVM's capistrano plugin. 
set :rvm_ruby_string, '[email protected]' # Or whatever env you want it to run in. 
set :rvm_type, :user 

字符串'[email protected]'应该是相同的一个在你.rvmrc在您的应用程序的根目录。