diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/setup.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/setup.rst b/docs/setup.rst index d8962f3..51ec383 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -100,13 +100,14 @@ Starting the web application ---------------------------- To serve the web application, you need a compatible ASGI server. We recommend -`gunicorn <https://gunicorn.org>`_. The endpoint for the web application is the -``app()`` factory in ``hircine.app``: +`gunicorn <https://gunicorn.org>`_ together with `uvicorn-worker +<https://github.com/Kludex/uvicorn-worker>`_. The endpoint for the web +application is the ``app()`` factory in ``hircine.app``: .. code-block:: console - (.venv) $ python -m pip install gunicorn - (.venv) $ gunicorn -k uvicorn.workers.UvicornWorker --bind localhost:8000 "hircine.app:app()" + (.venv) $ python -m pip install gunicorn uvicorn-worker + (.venv) $ gunicorn -k uvicorn_worker.UvicornWorker --bind localhost:8000 "hircine.app:app()" Now you can point your browser to http://localhost:8000 to open the web application. To stop it, simply terminate ``gunicorn`` or the ASGI server of |