Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Flask app to maintain the open/closed state of development repositories, used by closure hooks and status dashboards.
branch: master

This branch is 12 commits behind mozilla:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
requirements
schema
treestatus
vendor @ 0a27e22
.gitignore
.gitmodules
README
manage-db.py
testapp.py
treestatus.wsgi-dist
who.ini.example

README

Tree Status
===========

This is a simple wsgi app to maintain the open/closed state of development
trees. It has a simple REST API, and a friendly web interface.

Bugs can be filed at:
https://bugzilla.mozilla.org/enter_bug.cgi?product=Tree+Management&component=TreeStatus

Deployment
==========
The vendor library should contain all the pure python dependencies required.
The vendor library is provided as a git submodule. To check this out run

    git submodule update --init vendor

It's recommended to create a new virtual environment to install the compiled
dependencies.

    pip install -r requirements/compiled.txt

Copy who.ini.example to who.ini and edit to your liking. In particular,
audiences should match the public url of the site.
NB: http://127.0.0.1 is not treated the same as http://localhost for testing!
secret should also be changed to something random.

python testapp.py for local testing

treestatus.wsgi-dist can be used as a template for wsgi deployments

You will need to create an account for yourself in whichever database you have
created. For example, with the default testapp.py settings you would have a
database created called treestatus.db. You would then use the sqlite3 command
to add an account for yourself:

    sqlite3 treestatus.db "insert into users (name, is_admin, is_sheriff) values ('me@example.com', 1, 1)"
Something went wrong with that request. Please try again.