Skip to content

Instantly share code, notes, and snippets.

@j8
Created November 16, 2014 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j8/e3593cf41a5ea2f53fca to your computer and use it in GitHub Desktop.
Save j8/e3593cf41a5ea2f53fca to your computer and use it in GitHub Desktop.
OpenShift update app without restarting
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