This app handles management of the Treachery downtime system. The system is designed for Dokku/Heroku.
There are two modes to run the app in.
- Create a venv
python -m venv venv
- Set environ
source venv/bin/activate
- Install dependencies
python -m pip install -r requirements_development.txt
- Migrate database
- Create superuser
- Load fixtures
python manage.py loaddata treachery_rules
- Run server
python manage.py runserver
- Set the following environment variables on Dokku:
DJANGO_PRODUCTION=true
DJANGO_ALLOWED_HOSTS=your_domain,your_other_domain,your_third_domain
DATABASE_URL=postgres://
DJANGO_DEBUG=false
DJANGO_EMAIL_HOST=...
DJANGO_EMAIL_PASSWORD=...
DJANGO_EMAIL_USER=...
DJANGO_SECRET=...
- Push master to dokku
- Migrate database
- Create superuser
- Load fixtures
python manage.py loaddata treachery_rules
See the requirements.txt and runtime.txt files for dependencies.
The system is intended to be flexible and support rules changes. To that effect the system stores a rules preset as fixtures.
Treachery Downtime System
Copyright (C) 2016 Erik Gärtner
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.