Skip to content
Myr

Merge pull request #1631 from stephane/sra/docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Extend documentation about uwsgi/nginx deployment

authored by Jeff Widman · committed by Jeff Widman · parents 567fff9, b0105f4 · Browse files · 1 file+8 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−6 removed

  • other:+8 added−6 removed

1 file+8 added−6 removed

modified:docs/deploying/uwsgi.rst+8 added-6 removed
29 unmodified lines
30.. sourcecode:: text3132 $ uwsgi -s /tmp/uwsgi.sock --manage-script-name --mount /yourapplication=myapp:app3334The ``--manage-script-name`` will move the handling of ``SCRIPT_NAME`` to35uwsgi, since its smarter about that. It is used together with the ``--mount``36directive which will make requests to ``/yourapplication`` be directed to37``myapp:app``, where ``myapp`` refers to the name of the file of your flask38application (without extension). ``app`` is the callable inside of your39application (usually the line reads ``app = Flask(__name__)``.34The ``--manage-script-name`` will move the handling of ``SCRIPT_NAME`` to uwsgi,35since its smarter about that. It is used together with the ``--mount`` directive36which will make requests to ``/yourapplication`` be directed to ``myapp:app``.37If your application is accessible at root level, you can use a single ``/``38instead of ``/yourapplication``. ``myapp`` refers to the name of the file of39your flask application (without extension) or the module which provides ``app``.40``app`` is the callable inside of your application (usually the line reads41``app = Flask(__name__)``.4243If you want to deploy your flask application inside of a virtual environment,44you need to also add ``--virtualenv /path/to/virtual/environment``. You might45also need to add ``--plugin python`` or ``--plugin python3`` depending on which
27 unmodified lines