mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-06 04:19:26 +00:00
@@ -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
|
||||
@@ -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
|
||||
--------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user