Only the first time the database is set up:
- Create a new virtual environment (Python 3):
virtualenv -p python3.6 venv
- Activate the virtual environment:
source venv/bin/activate
- Install required modules:
pip install -r requirements.txt
- Create the DB:
export QUART_APP=app:app; quart create-db
- Download the latest data:
python app/update/update_tables.py
- Update the DB:
quart update-db
- Migrate the DB:
quart migrate-db
When finished, deactivate the virtual environment: deactivate
.
Since HmtPhenome retrieves data on-the-fly from external resources, the only update required is to keep data used in drop-down menus up to date. Please repeat steps 5, 6 and 7 to do so.
After the updating procedure is complete, please run quart migrate-db
, then systemctl restart HmtPhenome
(with sudo
if needed).
HmtPhenome is served using hypercorn; please ask your system admin for help about this.