The Duffy node provisioner for ci.centos.org
Set a secret key in the environment.
export DUFFY2_SECRET='SEKURITAH'
Set the `FLASK_APP`
and `FLASK_DEBUG`
environment variables
export FLASK_APP=duffy
export FLASK_DEBUG=1
Clone the duffy2 repo:
git clone https://github.com/CentOS/duffy cd duffy python setup.py develop
Populate a test database:
flask initdb
Run the duffy server:
flask run -h <bind_interface> -p <port>
To run the tests:
py.test
We don't set FLASK_DEBUG in production, otherwise it will send unnecessary info to duffy clients.
unset FLASK_DEBUG
The migrations folder is only interesting for CentOS CI instance of duffy at the moment. See above for populating a database for development purposes
flask db migrate # generates a migration script flask db upgrade # applies the migration script
Copyright © 2017 Karanbir Singh and other contributors