【发布时间】:2016-03-18 14:33:28
【问题描述】:
当我尝试将我的 github 应用程序部署到 heroku 时,我得到了他们的错误。关于这个错误意味着什么的任何想法?当我转到 myapp.herokuapp.com 网址时,我收到一条默认的应用程序消息“应用程序发生错误,无法提供您的页面。请稍后再试。”
2015-12-12T20:09:58.118155+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-12-12T20:09:58.144431+00:00 app[web.1]: => Booting WEBrick
2015-12-12T20:09:58.144435+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-12-12T20:09:58.144434+00:00 app[web.1]: => Rails 4.2.4 application starting in production on http://0.0.0.0:56551
2015-12-12T20:09:58.144436+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-12-12T20:10:00.089633+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com request_id=5c027f8f6-edc9-130c-80e3-e09852315e1d5 fwd="90.252.159.121" dyno= connect= service= status=503 bytes=
2015-12-12T20:09:58.118155+00:00 app[web.1]: from bin/rails:8:in `<main>'
2015-12-12T20:09:58.144436+00:00 app[web.1]: Exiting
2015-12-12T20:09:58.144431+00:00 app[web.1]: => Booting WEBrick
2015-12-12T20:09:58.118153+00:00 app[web.1]: from bin/rails:8:in `require'
2015-12-12T20:09:58.144435+00:00 app[web.1]: => Run `rails server -h` for more startup options
2015-12-12T20:09:58.144434+00:00 app[web.1]: => Rails 4.2.4 application starting in production on http://0.0.0.0:56551
2015-12-12T20:09:58.144436+00:00 app[web.1]: => Ctrl-C to shutdown server
2015-12-12T20:09:58.907129+00:00 heroku[web.1]: Process exited with status 1
2015-12-12T20:09:58.911994+00:00 heroku[web.1]: State changed from starting to crashed
更新:
我成功运行heroku run rake db:migrate 并得到一个有点不同的错误。
2015-12-14T14:46:11.598744+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
2015-12-14T14:46:11.598746+00:00 app[web.1]: from bin/rails:8:in `require'
2015-12-14T14:46:11.632494+00:00 app[web.1]: => Rails 4.2.4 application starting in production on http://0.0.0.0:20732
2015-12-14T14:46:12.680393+00:00 heroku[web.1]: State changed from starting to crashed
2015-12-14T18:20:23.431655+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=myapp.herokuapp.com request_id=2ed5f19a-bc65-40b8-ac3b-574d46c35ece fwd="177.127.367.126" dyno= connect= service= status=503 bytes=
: Not found
: Not found
: Not found
: Not found
: Not found
: Not found
: Not found
: Not found
: Not found
【问题讨论】:
-
如果加了repository,我看一下。
-
github repo 是私有的。无论如何,我可以在不发布存储库的情况下解决这个问题?谢谢
-
你能在开发中启动服务器吗(在你自己的机器上)?这是您第一次部署到 Heroku 吗?
-
Rails 在启动时基本上会崩溃——错误很可能在您的配置或初始化程序中的某个地方。
heroku[router]:行是 Heroku 提供您在浏览器中看到的静态错误页面。 -
是的,我可以在本地成功启动服务器。是的,这是我第一次部署到 Heroku。感谢您提供所有信息
标签: ruby-on-rails ruby-on-rails-4 heroku