Skip to content
Myr

Merge pull request #2861 from jwflory/fix/uwsgi-docs

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

[docs] Fix broken Sphinx cross-references; use :doc: tags where necessary

authored by David Lord · committed by GitHub · parents 93e4b71, e771016 · Browse files · 4 files+26 added−17 removed
This commit

State

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

Diff stats

4 files+26 added−17 removed

  • other:+26 added−17 removed

4 files+26 added−17 removed

modified:docs/deploying/fastcgi.rst+4 added-4 removed
2 unmodified lines
3FastCGI4=======56FastCGI is a deployment option on servers like `nginx`_, `lighttpd`_, and7`cherokee`_; see :ref:`deploying-uwsgi` and :ref:`deploying-wsgi-standalone`8for other options. To use your WSGI application with any of them you will need9a FastCGI server first. The most popular one is `flup`_ which we will use for10this guide. Make sure to have it installed to follow along.7`cherokee`_; see :doc:`uwsgi` and :doc:`wsgi-standalone` for other options. To8use your WSGI application with any of them you will need a FastCGI server first.9The most popular one is `flup`_ which we will use for this guide. Make sure to10have it installed to follow along.1112.. admonition:: Watch Out1314 Please make sure in advance that any ``app.run()`` calls you might
226 unmodified lines
modified:docs/deploying/uwsgi.rst+12 added-12 removed
2 unmodified lines
3uWSGI4=====56uWSGI is a deployment option on servers like `nginx`_, `lighttpd`_, and7`cherokee`_; see :ref:`deploying-fastcgi` and :ref:`deploying-wsgi-standalone`8for other options. To use your WSGI application with uWSGI protocol you will9need a uWSGI server first. uWSGI is both a protocol and an application server;10the application server can serve uWSGI, FastCGI, and HTTP protocols.7`cherokee`_; see :doc:`fastcgi` and :doc:`wsgi-standalone` for other options.8To use your WSGI application with uWSGI protocol you will need a uWSGI server9first. uWSGI is both a protocol and an application server; the application10server can serve uWSGI, FastCGI, and HTTP protocols.1112The most popular uWSGI server is `uwsgi`_, which we will use for this13guide. Make sure to have it installed to follow along.13guide. Make sure to have it installed to follow along.1415.. admonition:: Watch Out1617 Please make sure in advance that any ``app.run()`` calls you might
13 unmodified lines
3132 $ uwsgi -s /tmp/yourapplication.sock --manage-script-name --mount /yourapplication=myapp:app3334The ``--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__)``.35since it is smarter about that. It is used together with the ``--mount``36directive which will make requests to ``/yourapplication`` be directed to37``myapp:app``. If your application is accessible at root level, you can use a38single ``/`` instead of ``/yourapplication``. ``myapp`` refers to the name of39the file of your flask application (without extension) or the module which40provides ``app``. ``app`` is the callable inside of your application (usually41the line reads ``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
modified:docs/deploying/wsgi-standalone.rst+1 added-1 removed
35 unmodified lines
36Running `uWSGI HTTP Router`_::3738 uwsgi --http 127.0.0.1:5000 --module myproject:app3940For a more optimized setup, see :ref:`configuring uWSGI and NGINX <deploying-uwsgi>`.40For a more optimized setup, see :doc:`configuring uWSGI and NGINX <uwsgi>`.4142.. _uWSGI: http://uwsgi-docs.readthedocs.io/en/latest/43.. _uWSGI HTTP Router: http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router44
105 unmodified lines
modified:README.rst+9 added
41 unmodified lines
42 * Serving Flask app "hello"43 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)444546Contributing47------------4849For guidance on setting up a development environment and how to make a50contribution to Flask, see the `contributing guidelines`_.5152.. _contributing guidelines: https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst535455Donate56------5758The Pallets organization develops and supports Flask and the libraries
27 unmodified lines