从我的heroku应用程序开始崩溃到现在已经有48小时了。老实说,我不知道是什么让它崩溃,我试着重新启动它,更改dynos并运行heroku run rake db:migrate,但这些似乎都不起作用。
这些是我的heroku日志
at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=serene-savannah-7550.herokuapp.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:51:50+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.85317 measure.table-cache-hit-rate=0.99704
2013-08-27T12:52:45+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.85317 measure.table-cache-hit-rate=0.99704
2013-08-27T12:53:34.027760+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:54:35.129270+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=
2013-08-27T12:54:36+00:00 app[heroku-postgres]: source=HEROKU_POSTGRESQL_BLACK measure.current_transaction=26940 measure.db_size=56841336bytes measure.tables=23 measure.active-connections=3 measure.waiting-connections=0 measure.index-cache-hit-rate=0.99998 measure.table-cache-hit-rate=1
2013-08-27T12:55:15.018337+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=www.website.com fwd="81.34.154.155" dyno= connect= service= status=503 bytes=我已经尝试过更改为2 Dynos x1和1 Dyno x2,但是它并没有改变我安装的PostgreSQL起重机并将其设置为我的DATABASE_URL。
为什么它会崩溃,我如何修复这个恼人的错误?
谢谢
发布于 2013-08-27 14:12:58
看起来你的应用程序在反复崩溃(但你已经知道了)。您是否创建了尚未运行的迁移?
试试heroku run bundle exec rake db:migrate。
如果这不起作用,请尝试在Heroku上运行Rails控制台以帮助诊断问题。运行heroku run bundle exec rails console。
https://stackoverflow.com/questions/18466241
复制相似问题