2012-10-22 77 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可能会有所帮助)。