This article shares about how to properly set up a permanent storage upload folder in Openshift.
Set Up Upload Folder in Openshift
To file in your git repo: .openshift/action_hooks/build ,
Notes on Script Execution
The scripts will be run directly from the home directory of the cartridge. They need to have the executable bit turned on, and they should have UNIX-friendly line endings (n), not DOS ones (rn).
To ensure this, consider setting the following git options (just once) so that the files have correct line endings in the git repository:
git config --global core.autocrlf input # use <code>true</code> on Windows
git config --global core.safecrlf true
To ensure that the excutable bit is on, on UNIX-like systems, run: chmod +x bin/*