Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Example install of Reviewboard for OpenShift

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .openshift
Octocat-spinner-32 data
Octocat-spinner-32 libs
Octocat-spinner-32 wsgi
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 setup.py
README.md

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.

Usage

Quick

  1. rhc app create reviewboard python-2.6 mysql-5.1 --from-code git://github.com/openshift-quickstart/reviewboard-example.git

Manual

  1. Create a python-2.6 application and attach mysql to it:

    rhc app create reviewboard python-2.6 mysql-5.1
    
  2. 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
    
  3. Then push the repo upstream

    git push
    

Credentials

Username Password
Admin OpenShiftAdmin

Updates

In order to update or upgrade to the latest reviewboard, you'll need to re-pull and re-push.

  1. 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
    
  2. Pull from upstream:

    cd reviewboard/
    git pull -s recursive -X theirs upstream master
    
  3. Push the new changes upstream

    git push
    

Note: When new releases are pushed from the reviewboard dev team, your app will automatically download them on your next git push.

Repo layout

Path Purpose
wsgi/ Externally exposed wsgi code
libs/ Additional libraries
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

Environment Variables

OpenShift provides many environment variables for your application. See OpenShift Environment Variables for a complete list.

Notes

Repository Layout

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.

setup.py

Adding deps to the install_requires will have the OpenShift server actually install those deps at git push time.

Something went wrong with that request. Please try again.