Pergunta

During development of our Python/Django application, we accidentally introduced package requirements in requirements.txt that installed conflicting versions of a library. Heroku has cached the broken requirements in the CACHE_DIR specified by the python buildpack, as documented on their buildpack API info page, and it doesn't seem that any amount of modification to the requirements.txt file can purge the cache of the broken packages. How can we force Heroku to totally empty out the CACHE_DIR and reinstall all requirements and dependencies from scratch?

Foi útil?

Solução 2

I ran in the same problem as I was trying to install a module (django-piston) from source as the last official release is a bit old and lacks some bug fixes that are crucial to me. Anyway, there has been an issue opened before, and I actually got a reply from support.

It seems a bit odd to me, but at least it works (just choose any python release number in runtime.txt, rebuild, and then change back to your desired runtime and rebuild again)

Outras dicas

Use heroku-repo plugin purge_cache command:

$ heroku plugins:install heroku-repo
$ heroku repo:purge_cache -a appname

I was able to clear the cache by simply making a change to the readme.md file (added some spaces), committing, and pushing

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top