2012-07-05 173 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

相关问题