Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 654 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 654 Bytes

Initialise the vagrant box

vagrant up

This will create the box and run all of the required services including Redis, Celery, and the Flask server. Assuming this completes successfully then you can visit:

localhost:5000

How to set up the required resources

vagrant ssh
cd /vagrant
source .ve/bin/activate
flask assets build
flask refresh-codelists
flask db upgrade

Run web service with vagrant

webservice (flask uses port 5000 by default, this is opened on the vagrant box):

redis-server > /dev/null 2>&1 &
celery worker --app DataQualityTester.celery -l debug > /dev/null 2>&1 &
flask run --host 0.0.0.0