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依賴關係。事情似乎現在正在起作用。謝謝! –