-
Language:
English
-
Language:
English
13.4.3. Build and Deployment Action Hooks
The list of action hooks for build and deployment are:
- pre-build
- build
- deploy
- post-deploy
Create a new file in the
App_Name/.openshift/action_hooks
directory to use the build and deployment action hooks. For example, to use an action hook during the application build phase, create the file App_Name/.openshift/action_hooks/build
, edit it and add the following to the file's contents:
Example 13.1. Adding an Action Hook to the Build Process
echo Downloading my.zip... curl -o $OPENSHIFT_DATA_DIR/my.zip http://myserver/my.zip
The file is downloaded during the
git push
process.