我的本地电脑上有一个RoR应用程序,但当我把它发送给heroku时,它崩溃了.错误日志(log)显示错误H10&说:

    2012-11-21T15:26:47+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2/lib/new_relic/control/instance_methods.rb:95:in `start_agent'
    2012-11-21T15:26:48+00:00 heroku[web.1]: State changed from starting to crashed
    2012-11-21T15:26:48+00:00 heroku[web.1]: Process exited with status 1
    2012-11-21T15:26:59+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:27:00+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:30:59+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:31:19+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:31:19+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:32:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
    2012-11-21T15:32:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=

编辑:

2012-11-22T10:00:58+00:00 app[web.1]: 
2012-11-22T10:00:59+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno=web.1 queue=0 wait=0ms connect=1ms service=26ms status=200 bytes=0

以前有没有人有过这种情况,并且知道是什么导致了这个问题?我找不到解决办法.

谢谢

推荐答案

我遇到了上面同样的错误,应用程序在heroku上崩溃(在开发中运行良好),但heroku上的错误日志(log)没有透露任何线索.我在这一页上读到了其他答案,看到"重建应用程序"后,我大汗淋漓我想也许我可以进入heroku控制台四处看看.我做到了,甚至控制台也崩溃了,但这次它告诉了我原因.这是几个小时前我在一次故障排除会议上忘记删除的一个模糊变量.我并不是说你会遇到同样的问题,但当我试图通过控制台时,我发现了更多信息.希望这有帮助.

$ heroku run rails console

Ruby-on-rails相关问答推荐

在数组中定位不匹配的索引

`heroku Open`和`heroku run rake db:Migrate`不工作(";没有这样的文件或目录";)

在PDF生成中渲染 colored颜色

RubyOnRail在测试环境中启动失败

多对多模型通过控制台创建记录不起作用

我的 Ruby on Rails Web API 的 Docker 映像未在服务器上构建,因为它未与 ruby​​gems.org 连接

Rails 7,Hotwire 动态表单,更新值不起作用

ruby on rails 中的自定义关联

Rails 3.1 assets资源 - 奇怪的开发服务

如何在 IRB/Rails 控制台中 suppress 返回值的输出?

向现有控制器添加操作(Ruby on Rails)

您将如何在 Ruby on Rails 应用程序中使用 rSpec 测试观察者?

如何使用默认的 Rails 记录器记录 Ruby 异常的整个回溯?

将 defer 属性添加到 javascript_include_tag Rails

如何在 Rails 迁移中添加判断约束?

Rails,获取模型中的资源路径

在 PostgreSQL 中强制字符串的最大长度

使用god 监控独角兽 - 以非零代码开始退出 = 1

Elastic Beanstalk Ruby/Rails 需要安装 git,所以 bundle install 可以工作.. 但不是

Groovy/Grails :: Ruby/Rails :: 2011 框架状态