自从我的heroku应用程序开始崩溃以来已经过了48小时。
我真的不知道是什么让它崩溃了,我已经尝试重新启动它,更改动力学并运行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 Crane并设置为我的DATABASE_URL。
为什么会崩溃,我怎么能解决这个恼人的错误?
由于
答案 0 :(得分:7)
看起来你的应用程序反复崩溃(但你已经知道了)。您是否创建了尚未运行的迁移?
尝试heroku run bundle exec rake db:migrate
。
如果这不起作用,请尝试在Heroku上运行Rails控制台以帮助诊断问题。运行heroku run bundle exec rails console
。