Skip to content

Instantly share code, notes, and snippets.

@frankwiles
Created November 6, 2012 12:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankwiles/4024500 to your computer and use it in GitHub Desktop.
Save frankwiles/4024500 to your computer and use it in GitHub Desktop.
Rebuild a broken Python virtualenv on heroku
# Execute these commands in order to rebuild a virtualenv from scratch
$ heroku labs:enable user-env-compile
$ heroku config:set CLEAN_VIRTUALENV=yes
$ heroku config:set VIRTUALENV_DIRS=.heroku/venv
$ git push heroku master
$ heroku config:unset CLEAN_VIRTUALENV
$ heroku config:unset VIRTUALENV_DIRS
$ heroku labs:disable user-env-compile
# These last three commands undo the setting so your VENVs aren't rebuilt from scratch on every single deploy, just the ones you want.
@ZacSweers
Copy link

This doesn't appear to work, line 3 errors with No such feature: user-env-compile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment