Skip to content

Commit

Permalink
Add gunicorn with uvicorn workers to docs (#1766)
Browse files Browse the repository at this point in the history
Fixes #1755
  • Loading branch information
RobbeSneyders authored Oct 31, 2023
1 parent cbeac6f commit c1ef3f4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,15 @@ You can run your application using an ASGI server such as `uvicorn`. If you defi
$ uvicorn run:app
or if you installed connexion using :code:`connexion[uvicorn]`, you can run it using the
Or with gunicorn:

.. code-block:: bash
$ gunicorn -k uvicorn.workers.UvicornWorker
See the `uvicorn documentation`_ for more details.

If you installed connexion using :code:`connexion[uvicorn]`, you can run it using the
:code:`run` method. This is only recommended for development:

.. code-block:: python
Expand Down Expand Up @@ -233,6 +241,8 @@ import string. In most cases, this can be achieved as follows:
.. autofunction:: connexion.ConnexionMiddleware.run
:noindex:

.. _uvicorn documentation: https://www.uvicorn.org/deployment/

The Swagger UI
--------------

Expand Down

0 comments on commit c1ef3f4

Please sign in to comment.