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.
OpenShift Cookbook
By :
OpenShift Cookbook
By:
Overview of this book
Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Getting Started with OpenShift
Managing Domains
Creating and Managing Applications
Using MySQL with OpenShift Applications
Using PostgreSQL with OpenShift Applications
Using MongoDB and Third-party Database Cartridges with OpenShift Applications
OpenShift for Java Developers
OpenShift for Python Developers
OpenShift for Node.js Developers
Continuous Integration for OpenShift Applications
Logging and Scaling Your OpenShift Applications
Running OpenShift on a Virtual Machine
Index
Customer Reviews