OpenShift Quickstart - ReviewBoard
This repository is designed to be used with OpenShift applications.
Before using this quickstart, make sure you've created an account on OpenShift.
When configured, you will have a running installation of Review Board.
rhc app create reviewboard python-2.6 mysql-5.1 --from-code git://github.com/openshift-quickstart/reviewboard-example.git
Create a python-2.6 application and attach mysql to it:
rhc app create reviewboard python-2.6 mysql-5.1
Add this upstream reviewboard repo
cd reviewboard git remote add upstream -m master git://github.com/openshift-quickstart/reviewboard-example.git git pull -s recursive -X theirs upstream master
Then push the repo upstream
In order to update or upgrade to the latest reviewboard, you'll need to re-pull and re-push.
If you created your application using the 'quick' approach, you will need to add this repository as an upsteam.
git remote add upstream -m master git://github.com/openshift-quickstart/reviewboard-example.git
Pull from upstream:
cd reviewboard/ git pull -s recursive -X theirs upstream master
Push the new changes upstream
Note: When new releases are pushed from the reviewboard dev team, your app will automatically download them on your next git push.
|wsgi/||Externally exposed wsgi code|
|data/||For not-externally exposed wsgi code|
|setup.py||Standard setup.py, specify deps here|
|../data||For persistent data (also env var: OPENSHIFT_DATA_DIR)|
|.openshift/action_hooks/build||Script that gets run every push, just prior to starting your app|
OpenShift provides many environment variables for your application. See OpenShift Environment Variables for a complete list.
Please leave wsgi, libs and data directories but feel free to create additional directories if needed.
Note: Every time you push, everything in your remote repo dir gets recreated.
Please store long term items (like a sqlite database) in
$OPENSHIFT_DATA_DIR which will persist between pushes of your repo.
Adding deps to the install_requires will have the OpenShift server actually install those deps at git push time.