每次我部署到heroku时,我都会收到Timeout错误

时间:2013-04-23 15:33:26

标签: django heroku

我一直使用Heroku超过一年来部署我的Django应用程序。

每次我推送到Heroku时突然(没有任何重大变化),我收到错误,(Utils::TimeoutError)

 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:appname.git'

每次都会发生这种情况,但是在我的requirements.txt文件中安装所有软件包的不同阶段。

导致这种情况的原因是什么?

1 个答案:

答案 0 :(得分:1)

python build pack的文档讨论了这个

  

构建超时

     

这通常是由非常多的依赖项引起的   安装在同一时间。

     

有时,这是由Python解释器升级引起的。在这   例如,您有两种选择:

     

将runtime.txt文件添加到存储库,指定现有文件   你正在使用的python版本(例如python-2.7.3)。了解更多。

     

再次安装所有依赖项。我建议推一次   只有一半的依赖项,然后再次使用所有依赖项。   那你就不会超时了。

     

安装完成后,它们会被缓存,因此您不应该遇到问题   这又是。

您可以在此处查看更多https://github.com/heroku/heroku-buildpack-python/wiki/Troubleshooting#build-timeout

相关问题