sud0er/mediagoblin-quickstart-openshift — pull request #1 by orblivion (2013-02-03 16:55:07+00:00)
Title: Allow mediagoblin_local.ini and paste_local.ini to be editable.

As I understand, mediagoblin\_local.ini and paste\_local.ini are supposed to be untracked files that allow for the deployer to configure mediagoblin in a custom way, to avoid needing to commit such changes to the repository.

Ideally I would think that the best way to do a deployment would be to only copy the .ini to their \_local counterparts when they don't already exist, and not clobber them otherwise. However it seems that Openshift (understandably) cleans out the entire REPO directory on each deploy. So what I did was make it first copy mediagoblin.ini and paste.ini to the \_local versions in the DATA directory, under the directory config/, if they don't exist yet. Then, I (always) copy _those_ files into the \_local files in the REPO directory. That way, if you're just starting, a basic version shows up in data/config. If you edit the files in data/config, they will be applied when you subsequently deploy, and won't get clobbered.

It looks like you add some custom stuff to the end of the .ini files. This should still happen on top of whatever custom stuff the deployer puts into it in the data/custom/ copy, every time.

Let me know what you think. I basically just guessed that the data directory would be the best place. In any case this is what I'm doing for now with my own deployment I'm playing with.