O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Forcing a clean Python virtual environment

The first time you push your changes to the application gear, pip will download all the dependencies mentioned in setup.py or requirements.txt and populate the virtual environment with these dependencies. On every successive push, OpenShift will reuse the dependencies and will only download new dependencies mentioned in setup.py or requirements.txt. This makes the application build faster, as it does not have to download dependencies on every git push. There are scenarios, such as a corrupt virtual environment, where you will like to recreate the virtual environment and download all the dependencies again. In this recipe, you will learn how you can force OpenShift to recreate the virtual environment. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required