Setting up an Upload Folder in Openshift

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 ,

Reference: https://www.openshift.com/forums/openshift/one-newbie-question

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/*

Reference: http://openshift.github.io/documentation/oo_cartridge_developers_guide.html#notes-on-script-execution

2 thoughts on “Setting up an Upload Folder in Openshift”

Leave a Reply