首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Heroku Django应用部署超时

Heroku Django应用部署超时
EN

Stack Overflow用户
提问于 2014-02-27 03:36:03
回答 1查看 333关注 0票数 0

在过去的几个月里,我已经多次将这个django应用程序部署到heroku。今天,我在部署时遇到了超时,尽管我没有更改任何配置。Cleaning up..步骤需要很长时间,然后在Collecting static files步骤上失败。最近有没有人遇到过这个问题?是基础设施问题,还是python版本变更或其他问题?

代码语言:javascript
复制
      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'
EN

回答 1

Stack Overflow用户

发布于 2014-02-27 16:01:57

有几件事让这件事起作用了。

Disable collectstatic

代码语言:javascript
复制
$ heroku labs:enable user-env-compile
$ heroku config:set DISABLE_COLLECTSTATIC=1

Add explicit python runtime。在我的例子中,我只是坚持使用我已有的工作版本,即python-2.7.4

requirements.txt中删除不必要的外部依赖项。现在,这可能是特定于应用程序的,但我有一个自定义的pil和一个django模块,我并不真正需要从外部安装它们(从bitbucket)。这在以前从来都不是问题。但我删除了它们以防万一- Everytime I deploy to heroku I get a Timeout error

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22051478

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档