fastapi_config.py - gunicorn configuration for FastAPI / BookServer¶
This file configures gunicorn to use Uvicorn to run FastAPI which runs the BookServer.
See also the gunicorn config docs.
These are listed in the order prescribed by `PEP 8`_.
Local application imports¶
chdir: Change directory to specified directory before loading apps. Otherwise gunicorn does not know where to look for changes to your code.
wsgi_app: A WSGI application path in pattern
workers: The number of worker processes for handling requests. Pick this based on CPU count.
Detach and run in the background
reload_engine = “inotify”