2011-05-13 90 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在您的應用程序的根目錄。