Heroku上已部署的应用程序上的应用程序错误

时间:2019-03-20 15:20:08

标签: ruby-on-rails ruby heroku production

请帮助,我不知道。我是从heroku日志中得到的。

我在使用ruby 2.3 导轨5.1

2019-03-20T15:05:15.000000+00:00 app[api]: Build succeeded
2019-03-20T15:05:53.943996+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=5c0b7d49-b20e-4469-a483-88093fd77f5e fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:54.781463+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=de8a1df2-fc24-4e69-8b36-7cb1e92a73da fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:58.794279+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-reef-51265.herokuapp.com request_id=d53446ea-a1bd-474e-ad6c-ddf62b74689f fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
2019-03-20T15:05:59.021626+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-reef-51265.herokuapp.com request_id=63bd925f-fc04-4169-94ce-d08afd620a57 fwd="41.66.199.69" dyno= connect= service= status=503 bytes= protocol=https
^CTerminate batch job (Y/N)? y

1 个答案:

答案 0 :(得分:0)

尝试运行heroku localheroku run rails c。第一个命令将尝试在本地运行服务器,第二个命令将在heroku服务器上运行rails控制台。由于导致您的heroku应用无法启动的错误,它们都应该崩溃,但是它们应该提供更详细的原因说明。我之前几次看到此错误,一次是因为我没有正确地自动加载类,即require 'devise中的application.rb而另一次是因为控制器类中存在错误名称。