Updating documentation
Adding gunicorn to Heroku requirements - got missed in previous upgrade
Implementing 2017 total time calculation
A simple tool for viewing IDPA results.
git clone https://bitbucket.org/ajk/idpa-results.git
cd idpa-results
python -m venv VIRTUALENV
. VIRTUALENV/bin/activate
pip install -r requirements/not-heroku.txt
createdb idpa-results
psql -f create.sql idpa-results
git clone --origin bitbucket https://bitbucket.org/ajk/idpa-results.git
heroku apps:create idpa-results -b https://github.com/kennethreitz/conda-buildpack.git --addons heroku-postgresql
heroku config:add FLASK_SECRET_KEY TOPSECRET
heroku config:add WELCOME_MESSAGE_URL=1:https://bitbucket.org/\!api/2.0/snippets/ajk/yqd7M/0acf739f8f4a89125496db3edbbb9958907d873b/files/welcome.md
heroku config:add HELP_CONTENT_URL=https://bitbucket.org/\!api/2.0/snippets/ajk/yqd7M/0acf739f8f4a89125496db3edbbb9958907d873b/files/help.md
cat create.sql | heroku pg:psql
git push heroku master
. VIRTUALENV/bin/activate
flask run
Variable | Example | Description |
---|---|---|
DATABASE_URL | postgresql:///idpa-results | Database connection |
FLASK_SECRET_KEY | TOPSECRET | Flask secret key |
WELCOME_MESSAGE_URL | 1:http://example.com/welcome.md | Optional welcome message key and resource URL |
HELP_CONTENT_URL | http://example.com/help.md | Optional help content URL |
. VIRTUALENV/bin/activate
export DATABASE_URL=postgresql:///idpa-results
./katerina.py 123456
See UNLICENSE.