2012-10-22 99 views
2
I created a sample app called stock portfolio manager 

https://github.com/rohanmoitra/foliomanage並將其部署到heroku上。但是,每當我嘗試運行heroku rake db:遷移它超時,並給出以下錯誤。heroku錯誤R10

2012-10-22T22:28:35+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process 
failed to bind to $PORT within 60 seconds of launch 
2012-10-22T22:28:35+00:00 heroku[web.1]: Stopping process with SIGKILL 
2012-10-22T22:28:36+00:00 heroku[web.1]: Process exited with status 137 
2012-10-22T22:28:36+00:00 heroku[web.1]: State changed from starting to crashed 

Has anyone encountered this error before? Any help would be deeply appreciated 
+0

已更新至最新版本的heroku,並從gemfile中刪除了行gem'heroku'。也做一個提交git然後推送到heroku。 – user1766815

回答

1

您不應該在heroku啓動時進行遷移。後者限於60秒。作爲rake任務分別運行遷移。如果你確實想要這樣做,你必須解決啓動超時問題(https://github.com/dblock/heroku-forward可能會有所幫助)。