2016-09-22 108 views
0

我一直運行到我的Heroku的Ruby應用程序的應用程序錯誤:feedimg.heroku.com 的應用程式適用於本地主機正常,我試過heroku rake db:migrateheroic restart重新連接/設置AWS S3,他們沒有作品。Heroku的Ruby應用程序錯誤

以下是錯誤日誌:

2016-09-22T06:04:13.332269+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=feedimg.herokuapp.com request_id=6b563da0-56ff-49bd-aa26-9769ca3ee4bd fwd="199.188.193.230" dyno= connect= service= status=503 bytes= 
2016-09-22T06:05:49.099162+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=feedimg.herokuapp.com request_id=15478003-112f-4048-a0a1-4f5c05953fd3 fwd="199.188.193.230" dyno= connect= service= status=503 bytes= 
+1

你有任何其他的日誌服務(papertail,loggly,新的遺蹟)或錯誤報告工具(翻車防護杆, airbrake)到位了嗎?該應用程序在您的開發機器上工作嗎?測試仍然是綠色的? – spickermann

+0

我只有Device gem作爲日誌服務。我沒有任何其他錯誤報告工具。它在我的本地開發機器上工作。 – huisleona

回答

0

您需要重新啓動heroku

heroku restart 
+0

我已經嘗試過'heroku restart',但是錯誤依然存在。 – huisleona

+0

試'的Heroku運行rake FB:migrate' –

+0

config.after_initialize做 的ActiveRecord :: Migrator.migrate(Rails.root.join( 「DB /遷移」),無) 結束\ n 加入這行代碼自動在application.rb中初始化時執行遷移以解決遷移問題 –