Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Enabling hot deployment for Python applications


Every time you make a change to your application source code and push the changes to the OpenShift application gear Git repository, OpenShift first stops your gear (which stops all the cartridges installed on the gear), copies the source code from your application Git repository to app-root/runtime/repo, performs a build, prepares the artifact, and finally starts your gear (which starts all the cartridges). This process takes time and does not suit rapid development and deployment. To enable rapid development and faster deployments, OpenShift supports hot deployment. Hot deployment means that you can deploy your changes without the need to restart all the application cartridges.

In this recipe, you will learn how you can enable hot deployment for Python applications.

Note

This recipe will work with all the three supported Python versions.

How to do it…

Perform the following steps to enable hot deployment for your application:

  1. Create a new Python...