I know the question is a bit old, but maybe it will help someone else.
You can use rhc scp
command to download and upload any file to your main gear:
download the file from your gear:
rhc scp APPNAME download . haproxy/conf/haproxy.cfg
edit it
- upload the file back to your gear:
rhc scp APPNAME upload haproxy.cfg haproxy/conf/haproxy.cfg
You can also:
- add your haproxy configuration file to your git repo (e.g.
conf/haproxy.cfg
) - add an action hook script to your
.openshift/action_hooks
git directory (e.g. pre_reload, pre_restart) like so:#!/bin/bash cp $OPENSHIFT_REPO_DIR/conf/haproxy.cfg ~/haproxy/conf/haproxy.cfg
- Don't forget to make it executable (
git update-index --chmod=+x .openshift/action_hooks/*
)