问题
This issue started today for no apparent reason. When I do git push dev master
for my Django project, I sometimes get a hang after the program says "installing dependencies with pip":
Counting objects: 11, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 643 bytes, done.
Total 7 (delta 5), reused 0 (delta 0)
-----> Python app detected
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Using Python runtime (python-2.7.4)
-----> Installing dependencies using Pip (1.3.1)
After 15 minutes of hanging, compilation times out.
Then I run the same command again (without having changed anything), and it works. I suspected it was a problem installing one of the modules in my requirements.txt file, but I made that file empty and the problem still occurs.
My logs just show this:
heroku[slug-compiler]: Slug compilation started
Any ideas how I can troubleshoot this?
回答1:
A bit of a far shot, but ... you could try
git fsck --full --strict
to make sure your repository is healthy.
来源:https://stackoverflow.com/questions/18550219/git-push-slug-compilation-hangs