0
在过去几个月里,我一直在将这个django应用程序部署到heroku几次。今天,我在部署时发生超时,即使我没有更改任何配置。 Cleaning up..
步骤需要很长时间,然后在Collecting static files
步骤失败。有没有人最近遇到过这个问题?这是一个基础设施问题或python版本更改或其他?Heroku Django应用程序部署超时
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 [email protected]:x.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:x.git'
'collectstatic'命令是否等待用户输入?你可以传递'--noinput',所以它不会提示任何事情。 [链接到文档](https://docs.djangoproject.com/zh/dev/ref/contrib/staticfiles/#django-admin-collectstatic) –
不,我禁用了heroku上的collectstatic。配置可能已经改变或者什么。我将它重置为禁用,并设置了显式的python运行时,并删除了一些我在外部加载的pip依赖关系。事情似乎现在正在起作用。谢谢! –