0

我正在尝试在 Heroku 服务器上部署我的应用程序,但由于某种原因,我既无法启动我的应用程序,也无法启动run console. 当我尝试执行heroku run console时,我得到以下信息:

MacBook:threexortwo lander$ heroku run console
Running `console` attached to terminal... up, run.1  
Rubber[ERROR]: Unable to read rubber configuration from /app/config/rubber/rubber.yml  
(erb):301:in `<main>': undefined local variable or method `rubber_env' for main:Object (NameError)  
    from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `eval'  
    from /usr/local/lib/ruby/1.9.1/erb.rb:753:in `result'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/environment.rb:39:in `read_config'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/environment.rb:30:in `block in initialize'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/environment.rb:30:in `each'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/environment.rb:30:in `initialize'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/configuration.rb:37:in `new'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/configuration.rb:37:in `initialize'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/configuration.rb:14:in `new'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/configuration.rb:14:in `get_configuration'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/configuration.rb:22:in `rubber_env'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber.rb:53:in `config'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber.rb:31:in `initialize'  
    from /app/vendor/bundle/ruby/1.9.1/gems/rubber-2.1.2/lib/rubber/railtie.rb:9:in `block in <class:Railtie>'  
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `call'  
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'  
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'  
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `each'  
    from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'  
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:67:in `inherited'  
    from /app/config/application.rb:13:in `<module:Threexortwo>'  
    from /app/config/application.rb:12:in `<top (required)>'  
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:39:in `require'  
    from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:39:in `<top (required)>'  
    from script/rails:6:in `require'  
    from script/rails:6:in `<main>'  

以前,我正在使用 Amazon EC2 服务器,并且正在使用rubber. 在rubbervulcanized. 当我在本地运行我的服务器应用程序时,我没有遇到这个问题,而且我只有在弄乱 Heroku 时才会遇到这个问题。

4

1 回答 1

1

看起来橡胶仍在您的 gemfile 中。Heroku 读入你的 gemfile 并安装所有列出的 gem。

尝试删除它。

于 2012-10-06T22:25:29.283 回答