Skip to content

Updating the virtualenv for the outbreak.api hub

juliamullen edited this page Aug 19, 2021 · 1 revision

Log in to the hub user: $ sudo su outbreak

(if necessary) Clone this repo and cd into the folder $ git clone https://github.com/outbreak-info/outbreak.api.git && cd outbreak.api

Create a virtualenv $ /bin/python[PY_VERSION] -m venv ~/venv

Install hub dependencies $ pip install -r requirements_hub.txt NB: The requirements_hub.txt file here should let most of the dependency resolution be done by what biothings requires. Any additional dependencies required by plugins should be installed secondarily and pinned only with extreme certainty.

First run the hub on the command line, testing: $ PYTHONPATH:. python bin/hub.py

If it runs ok, restart the systemctl service: $ sudo systemctl restart outbreak_hub

To watch the logs, read via journalctl $ journalctl -f -u outbreak_hub

Clone this wiki locally