2012-07-05 54 views
1

RVM 1.14.5,RVM-Capistrano酒店(1.2.2)和Capistrano的(2.12.0) 我的Gemfile是:未初始化的常量Capistrano的(NameError)

group :development, :test do 
    gem 'rvm-capistrano' 
    gem 'capistrano' 
end 

當我嘗試啓動乘客,我一直看到此錯誤:

[ pid=4691 thr=76294140 file=utils.rb:176 time=2012-07-04 11:37:06.179 ]: *** Exception NameError in PhusionPassenger::Rack::ApplicationSpawner (uninitialized constant Capistrano) (process 4691, thread #<Thread:0x9184ff8>): 
from /home/ved/.rvm/gems/ruby-1.9.3-p194/gems/rvm-capistrano-1.2.2/lib/rvm/capistrano.rb:3:in `<top (required)>' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `require' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `rescue in block in require' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in `block in require' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require' 
from /home/ved/.rvm/gems/[email protected]/gems/bundler-1.1.3/lib/bundler.rb:119:in `require' 
from /home/ved/rails_projects/grabber/config/application.rb:12:in `<top (required)>' 
from /home/ved/rails_projects/grabber/config/environment.rb:3:in `require' 
from /home/ved/rails_projects/grabber/config/environment.rb:3:in `<top (required)>' 
from config.ru:3:in `require' 
from config.ru:3:in `block in <main>' 

回答

4

只是走一個刺在這裏,但要確保你不包括開發和測試組安裝捆綁軟件時。

捆綁安裝--without測試開發

這聽起來像某種原因,您的應用程序試圖加載RVM-Capistrano酒店。

+0

哦,親愛的上帝,你救了我一天!謝謝 – Vinozio

相關問題