Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation to reflect change in Gunicorn 20 #3421

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/deploying/wsgi-standalone.rst
Expand Up @@ -25,9 +25,18 @@ For example, to run a Flask application with 4 worker processes (``-w

The ``gunicorn`` command expects the names of your application module or
package and the application instance within the module. If you use the
application factory pattern, you can pass a call to that::
application factory pattern, import the application factory into a module
and declare a variable for the app::

$ gunicorn "myproject:create_app()"
#wsgi.py
from myproject.app import create_app
app=create_app()


Then, use the ``gunicorn`` command to run
the app from the module::

$ gunicorn "myproject.wsgi:app"

.. _Gunicorn: https://gunicorn.org/
.. _eventlet: https://eventlet.net/
Expand All @@ -40,7 +49,6 @@ uWSGI
which makes it more complicated to setup than gunicorn.

Running `uWSGI HTTP Router`_::

$ uwsgi --http 127.0.0.1:5000 --module myproject:app

For a more optimized setup, see :doc:`configuring uWSGI and NGINX <uwsgi>`.
Expand Down