在过去的几个月里,我已经多次将这个django应用程序部署到heroku。今天,我在部署时遇到了超时,尽管我没有更改任何配置。Cleaning up..步骤需要很长时间,然后在Collecting static files步骤上失败。最近有没有人遇到过这个问题?是基础设施问题,还是python版本变更或其他问题?
Cleaning up...
-----> Collecting static files
! Timed out compiling Python app (15 minutes)
! See https://devcenter.heroku.com/articles/slug-compiler#time-limit
Auto packing the repository for optimum performance.
To git@heroku.com:x.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:x.git'发布于 2014-02-27 16:01:57
有几件事让这件事起作用了。
$ heroku labs:enable user-env-compile
$ heroku config:set DISABLE_COLLECTSTATIC=1Add explicit python runtime。在我的例子中,我只是坚持使用我已有的工作版本,即python-2.7.4
从requirements.txt中删除不必要的外部依赖项。现在,这可能是特定于应用程序的,但我有一个自定义的pil和一个django模块,我并不真正需要从外部安装它们(从bitbucket)。这在以前从来都不是问题。但我删除了它们以防万一- Everytime I deploy to heroku I get a Timeout error
https://stackoverflow.com/questions/22051478
复制相似问题