Ruby on rails Heroku:应用程序崩溃,错误代码为H10。Can';无法解决

Ruby on rails Heroku:应用程序崩溃,错误代码为H10。Can';无法解决,ruby-on-rails,ruby,heroku,Ruby On Rails,Ruby,Heroku,我的应用程序在本地运行,但部署到Heroku时崩溃。有什么帮助吗 很抱歉格式化了。我不知道该怎么做 2012-07-03T08:56:02+00:00 app[web.1]: Exiting 2012-07-03T08:56:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant

我的应用程序在本地运行,但部署到Heroku时崩溃。有什么帮助吗

很抱歉格式化了。我不知道该怎么做

2012-07-03T08:56:02+00:00 app[web.1]: Exiting
2012-07-03T08:56:02+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant Admin::ResourceController (NameError)
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/spree_essential_cms-0.2.1/app/controllers/admin/contents_controller.rb:1:in `<top (required)>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:416:in `each'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:416:in `block in eager_load!'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:414:in `each'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:414:in `eager_load!'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/railties.rb:8:in `each'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/railties.rb:8:in `all'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:412:in `eager_load!'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:in `run'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:in `each'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:in `run_initializers'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application.rb:96:in `initialize!'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `require'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/config.ru:4:in `block in <main>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `instance_eval'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in `initialize'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/config.ru:1:in `new'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/config.ru:1:in `<main>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `eval'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in `parse_file'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in `app'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands/server.rb:46:in `app'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:301:in `wrapped_app'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:in `start'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands/server.rb:70:in `start'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:54:in `block in <top (required)>'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:49:in `tap'
2012-07-03T08:56:02+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:49:in `<top (required)>'
2012-07-03T08:56:02+00:00 app[web.1]:   from script/rails:6:in `require'
2012-07-03T08:56:02+00:00 app[web.1]:   from script/rails:6:in `<main>'
2012-07-03T08:56:03+00:00 heroku[web.1]: Process exited with status 1
2012-07-03T08:56:02+00:00应用程序[web.1]:退出
2012-07-03T08:56:02+00:00应用程序[web.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in'const_missing':未初始化常量Admin::ResourceController(名称错误)
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/spree\u-essential\u-cms-0.2.1/app/controllers/admin/contents\u-controller.rb:1:in`'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in'require'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in'require'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:417:in'block(2层)in eager_load!'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:416:in'each'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:416:in“块加载”
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:414:in'each'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:414:in'eager_load!'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/railties.rb:8:在'each'中
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/railties.rb:8:in“all”
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/engine.rb:412:in'eager_load!'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application/finisher.rb:51:在“block in”中
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:in'instance_exec'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:30:in'run'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:55:“运行中的块初始化器”
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:in'each'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/initializable.rb:54:in'run_initializer'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/application.rb:96:in'initialize!'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/railtie/configurable.rb:30:in'method_missing'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/config/environment.rb:5:in`'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in'require'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/polyglot-0.3.3/lib/polyglot.rb:63:in'require'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/config.ru:4:in'block in'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:in'instance_eval'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:51:在“初始化”中
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/config.ru:1:在“new”中
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/config.ru:1:in`'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in'eval'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:40:in'parse_file'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:200:in'app'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands/server.rb:46:in'app'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.6/lib/rack/server.rb:252:在“开始”中
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands/server.rb:70:在“开始”中
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:54:in'block in'
2012-07-03T08:56:02+00:00应用程序[网站1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:49:in'tap'
2012-07-03T08:56:02+00:00应用程序[web.1]:from/app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.4/lib/rails/commands.rb:49:in`'
2012-07-03T08:56:02+00:00应用程序[web.1]:来自脚本/rails:6:in'require'
2012-07-03T08:56:02+00:00应用程序[web.1]:来自脚本/rails:6:in`'
2012-07-03T08:56:03+00:00 heroku[web.1]:进程已退出,状态为1

前两行显示了contents\u controller.rb中的“未初始化常量Admin::ResourceController”问题。您是否尝试在与Heroku(Ruby 1.9.1)相同的环境下以生产模式运行应用程序?它可能有助于调试问题。您使用的是rails\u admin还是activeadmin gems?看起来像ActiveAdmin,但我不能确定。我似乎记得有过这个问题,它与启动期间评估的仪表板有关。您可能需要将:require添加到您的文件中,但不确定。