Browse Source

Fix broken cross-references; use :doc: tags where necessary

pull/2861/head
Justin W. Flory 7 years ago
parent
commit
e771016a5b
No known key found for this signature in database
GPG Key ID: 3AA2DC1FF6ABF0B6
  1. 8
      docs/deploying/fastcgi.rst
  2. 24
      docs/deploying/uwsgi.rst
  3. 2
      docs/deploying/wsgi-standalone.rst

8
docs/deploying/fastcgi.rst

@ -4,10 +4,10 @@ FastCGI
======= =======
FastCGI is a deployment option on servers like `nginx`_, `lighttpd`_, and FastCGI is a deployment option on servers like `nginx`_, `lighttpd`_, and
`cherokee`_; see :ref:`deploying-uwsgi` and :ref:`deploying-wsgi-standalone` `cherokee`_; see :doc:`uwsgi` and :doc:`wsgi-standalone` for other options. To
for other options. To use your WSGI application with any of them you will need use your WSGI application with any of them you will need a FastCGI server first.
a FastCGI server first. The most popular one is `flup`_ which we will use for The most popular one is `flup`_ which we will use for this guide. Make sure to
this guide. Make sure to have it installed to follow along. have it installed to follow along.
.. admonition:: Watch Out .. admonition:: Watch Out

24
docs/deploying/uwsgi.rst

@ -4,13 +4,13 @@ uWSGI
===== =====
uWSGI is a deployment option on servers like `nginx`_, `lighttpd`_, and uWSGI is a deployment option on servers like `nginx`_, `lighttpd`_, and
`cherokee`_; see :ref:`deploying-fastcgi` and :ref:`deploying-wsgi-standalone` `cherokee`_; see :doc:`fastcgi` and :doc:`wsgi-standalone` for other options.
for other options. To use your WSGI application with uWSGI protocol you will To use your WSGI application with uWSGI protocol you will need a uWSGI server
need a uWSGI server first. uWSGI is both a protocol and an application server; first. uWSGI is both a protocol and an application server; the application
the application server can serve uWSGI, FastCGI, and HTTP protocols. server can serve uWSGI, FastCGI, and HTTP protocols.
The most popular uWSGI server is `uwsgi`_, which we will use for this The most popular uWSGI server is `uwsgi`_, which we will use for this
guide. Make sure to have it installed to follow along. guide. Make sure to have it installed to follow along.
.. admonition:: Watch Out .. admonition:: Watch Out
@ -32,13 +32,13 @@ Given a flask application in myapp.py, use the following command:
$ uwsgi -s /tmp/yourapplication.sock --manage-script-name --mount /yourapplication=myapp:app $ uwsgi -s /tmp/yourapplication.sock --manage-script-name --mount /yourapplication=myapp:app
The ``--manage-script-name`` will move the handling of ``SCRIPT_NAME`` to uwsgi, The ``--manage-script-name`` will move the handling of ``SCRIPT_NAME`` to uwsgi,
since its smarter about that. It is used together with the ``--mount`` directive since it is smarter about that. It is used together with the ``--mount``
which will make requests to ``/yourapplication`` be directed to ``myapp:app``. directive which will make requests to ``/yourapplication`` be directed to
If your application is accessible at root level, you can use a single ``/`` ``myapp:app``. If your application is accessible at root level, you can use a
instead of ``/yourapplication``. ``myapp`` refers to the name of the file of single ``/`` instead of ``/yourapplication``. ``myapp`` refers to the name of
your flask application (without extension) or the module which provides ``app``. the file of your flask application (without extension) or the module which
``app`` is the callable inside of your application (usually the line reads provides ``app``. ``app`` is the callable inside of your application (usually
``app = Flask(__name__)``. the line reads ``app = Flask(__name__)``.
If you want to deploy your flask application inside of a virtual environment, If you want to deploy your flask application inside of a virtual environment,
you need to also add ``--virtualenv /path/to/virtual/environment``. You might you need to also add ``--virtualenv /path/to/virtual/environment``. You might

2
docs/deploying/wsgi-standalone.rst

@ -37,7 +37,7 @@ Running `uWSGI HTTP Router`_::
uwsgi --http 127.0.0.1:5000 --module myproject:app uwsgi --http 127.0.0.1:5000 --module myproject:app
For a more optimized setup, see :ref:`configuring uWSGI and NGINX <deploying-uwsgi>`. For a more optimized setup, see :doc:`configuring uWSGI and NGINX <uwsgi>`.
.. _uWSGI: http://uwsgi-docs.readthedocs.io/en/latest/ .. _uWSGI: http://uwsgi-docs.readthedocs.io/en/latest/
.. _uWSGI HTTP Router: http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router .. _uWSGI HTTP Router: http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#the-uwsgi-http-https-router

Loading…
Cancel
Save