2
I created a sample app called stock portfolio manager 

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

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
4

1 回答 1

1

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

于 2012-12-14T05:35:55.837 回答