heroku错误R10

时间:2012-10-22 22:49:08

标签: heroku

I created a sample app called stock portfolio manager 

https://github.com/rohanmoitra/foliomanage并将其部署在heroku上。但每当我尝试运行heroku rake db时,迁移它会超时,并给出以下错误。

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

1 个答案:

答案 0 :(得分:1)

您不应该在heroku启动上进行迁移。后者限制在60秒。作为rake任务单独运行迁移。如果你真的,真的想这样做,你必须解决启动超时(https://github.com/dblock/heroku-forward可能有帮助)。