See bitem-heg-geneve/ebiodiv-matching-frontend#44
This backend saves the occurrence relations including when the user has not made a choice.
pip install -e .
ebiodiv-backend --production # or python -m ebiodiv --production
Create a config.ini
file to configured the server:
[server]
root_path=/
host=localhost
port=8888
default_proc_name=ebiodiv
# worker=8
# ssl_keyfile=
# ssl_certfile=
[datasource]
url=https://tb.plazi.org/GgServer/gbifOccLinkData/
timeout=180
usage: python -m ebiodiv [-h] [--production | --profile PROFILE_FILENAME]
optional arguments:
-h, --help show this help message and exit
--production Run in production mode
--profile PROFILE_FILENAME
Run cProfile in developpment mode and record the a .prof file
Without either option --production
or option --profile
option, the server starts in debug mode: enable auto-reload (content referenced by .gitignore is ignored).
pip install snakeviz
ebiodiv-backend --profile test.prof
snakeviz ./test.prof