2013-01-31 56 views
0

我在我的heroku日誌中得到這個錯誤。創建數據庫,但在不斷地記錄此錯誤數據庫創建後Heroku應用程序出錯

2013-01-31T18:06:06+00:00 heroku[run.9334]: Starting process with command `bundle exec rake db:migrate` 
2013-01-31T18:06:06+00:00 heroku[run.9334]: Awaiting client 
2013-01-31T18:06:06+00:00 heroku[run.9334]: State changed from starting to up 
2013-01-31T18:06:02+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by [email protected] 
2013-01-31T18:06:10+00:00 heroku[run.9334]: Client connection closed. Sending SIGHUP to all processes 
2013-01-31T18:06:11+00:00 heroku[run.9334]: Process exited with status 0 
2013-01-31T18:06:11+00:00 heroku[run.9334]: State changed from up to complete 
2013-01-31T18:06:16+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=youimports.herokuapp.com fwd=189.73.162.46 dyno= queue= wait= connect= service= status=503 bytes= 
+0

看起來應用程序不能正常顯示。當你執行'''heroku restart'''時,'''heroku日誌-t'''會說什麼? – phoet

回答

0

你的日誌不顯示出與Postgres的任何問題,儘管它一個rake db:migrate過程中失敗。

我會驗證DATABASE_URL是否指向您的數據庫heroku config --app <your-app>。如果不是,只需提升你的數據庫。爲此,請通過heroku pg:info --app <your-app>找出數據庫的「顏色」,然後通過heroku pg:promote <color> --app <your-app>進行升級。