Created
November 16, 2014 11:52
-
-
Save j8/e3593cf41a5ea2f53fca to your computer and use it in GitHub Desktop.
OpenShift update app without restarting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hot Deployment | |
Introduction | |
When the git push command is run to upload code modifications, OpenShift Online stops, builds, deploys, and restarts an application. This entire process takes time to complete and is unnecessary for many types of code changes. With hot deployment the changes to application code are applied without restarting the application cartridge, resulting in increased deployment speed and minimized application downtime. | |
OpenShift Online provides support for hot deployment through a hot_deploy marker file. If the marker is present, supported application cartridges automatically hot deploy when the git push command is executed. | |
Enabling and Disabling Hot Deployment | |
WINDOWS | |
Enable hot deployment by creating the hot_deploy marker file in the application’s root directory with the following command: | |
C:\app_directory> copy NUL > .openshift\markers\hot_deploy | |
Disable hot deployment by deleting the hot_deploy marker file. | |
MAC OS X AND LINUX | |
Enable hot deployment by creating the hot_deploy marker file in the application’s root directory: | |
$ touch .openshift/markers/hot_deploy | |
Disable hot deployment by deleting the hot_deploy marker file. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment