Tracking and rolling back application deployments
When you deploy the source code using git push
, OpenShift executes a new build, creates a deployment, deploys it to the respective server, and then starts your application container. By default, it will only track the last deployment of your application, which means you can't roll back to a previous deployment. In this recipe, you will learn how to configure your application to track multiple deployments and roll back to a particular deployment.
Getting ready
To step through this recipe, you will need to have rhc installed on your machine.
How to do it…
Perform the following steps to learn how to configure applications to track multiple deployments and roll back to a previous version:
- Create a new PHP ...
Get OpenShift Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.