【问题标题】:uninitialized constant Capistrano (NameError)未初始化的常量 Capistrano (NameError)
【发布时间】:2012-07-05 04:48:51
【问题描述】:

rvm 1.14.5、rvm-capistrano (1.2.2) 和 capistrano (2.12.0) 我的 Gemfile 是:

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/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `require'
from /home/ved/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `rescue in block in require'
from /home/ved/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in `block in require'
from /home/ved/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
from /home/ved/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
from /home/ved/.rvm/gems/ruby-1.9.3-p194@global/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>'

【问题讨论】:

    标签: rvm rvm-capistrano


    【解决方案1】:

    只是在这里尝试一下,但请确保在安装包时排除开发和测试组。

    捆绑安装--无需测试开发

    听起来您的应用程序出于某种原因正在尝试加载 rvm-capistrano。

    【讨论】:

    • 天哪,你拯救了这一天!谢谢
    猜你喜欢
    • 2021-02-21
    • 1970-01-01
    • 1970-01-01
    • 2015-01-19
    • 2015-10-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多