【问题标题】:Heroku Ruby Application ErrorHeroku Ruby 应用程序错误
【发布时间】:2017-01-30 14:05:04
【问题描述】:

我在 Heroku Ruby 应用程序上不断遇到应用程序错误:feedimg.heroku.com 该应用程序在本地主机上运行良好,我尝试heroku rake db:migrateheroic restart 重新连接/设置 AWS S3,但它们都不起作用。

这是错误日志:

2016-09-22T06:04:13.332269+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=feedimg.herokuapp.com request_id=6b563da0-56ff-49bd-aa26-9769ca3ee4bd fwd="199.188.193.230" dyno= connect= service= status=503 bytes=
2016-09-22T06:05:49.099162+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=feedimg.herokuapp.com request_id=15478003-112f-4048-a0a1-4f5c05953fd3 fwd="199.188.193.230" dyno= connect= service= status=503 bytes=

【问题讨论】:

  • 您是否有任何其他日志记录服务(papertail、loggly、new relic)或错误报告工具(rollbar、airbrake)?该应用程序可以在您的开发机器上运行吗?测试仍然是绿色的吗?
  • 我只有 Device gem 作为日志服务。我没有任何其他错误报告工具。它确实适用于我的本地开发机器。

标签: ruby-on-rails ruby heroku amazon-s3


【解决方案1】:

需要重启heroku

heroku restart

【讨论】:

  • 我试过heroku restart,但错误仍然存​​在。
  • 试试heroku run rake fb:migrate
  • config.after_initialize do ActiveRecord::Migrator.migrate(Rails.root.join("db/migrate"), nil) end \n 添加这行代码在应用程序初始化时自动执行迁移.rb 解决迁移问题
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-12-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-12-18
  • 1970-01-01
  • 2012-04-17
相关资源
最近更新 更多