Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use openshift db cartridge, if one is installed
openshift will host mysql or postgresql relational DBs for you, if you add those cartridges. this commit tells db.py to use the first installed openshift db it finds. note that it is theoretically possible to have both postgresql and mysql addon cartridges installed at the same time. don't do that, that would be silly. No editing config.txt required -- the location of the openshift db can change, so relying on the env vars is really the best way to go. and it's not easy to integrate the env vars into config.txt. See README at https://github.com/deargle/openshift-psiturk-cartridge for an example of getting mysql up and running.
- Loading branch information