Aug 25, 2018

[HDGEM] How to Enable and Disable Hot Deployment on OpenShift

Enabling and Disabling Hot Deployment


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.

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.


--
Posted By Blogger to HDGEM at 11/01/2016 01:39:00 PM