【发布时间】:2019-08-11 08:33:24
【问题描述】:
请帮忙,我不知道。我从我的 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
【问题讨论】:
-
您的应用程序崩溃(引发异常)。
-
你试过
heroku restart吗?您也可以在这里找到更多信息:stackoverflow.com/questions/13496827/… -
是的,heroku 重启了十几次
-
我检查了你发送的链接,我尝试了 heroku run rails 控制台,发现了一个问题 =>
rescue in spec': Specified 'sqlite3' for database adapter, but the gem is not loaded. Addgem 'sqlite3'` 到你的 Gemfile (并确保它的版本是最低的ActiveRecord 要求)。 (Gem::LoadError) -
但我的 gem 文件中有 gem。 => 就是这样。并安装了 bundle => # 使用 sqlite3 作为 Active Record 组的数据库 :development do gem 'sqlite3' end gem 'jquery-rails' group :production do gem 'pg' gem 'rails_12factor' end
标签: ruby-on-rails ruby heroku production