Skip to content
Myr

docs/deploying/wsgi-standalone: Add Twisted Web.

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

I've been meaning to do this for quite some time, but I never got around to it. Hopefully this is neutral and useful enough to be included in the main docs.

authored by Corbin Simpson · committed by Corbin Simpson · parent c2e5799 · Browse files · 1 file+23 added−0 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+23 added−0 removed

  • other:+23 added−0 removed

1 file+23 added−0 removed

modified:docs/deploying/wsgi-standalone.rst+23 added
64 unmodified lines
65.. _Gevent: http://www.gevent.org/66.. _greenlet: http://codespeak.net/py/0.9.2/greenlet.html67.. _libevent: http://monkey.org/~provos/libevent/6869Twisted Web70-----------7172`Twisted Web`_ is the web server shipped with `Twisted`_, a mature,73non-blocking event-driven networking library. Twisted Web comes with a74standard WSGI container which can be controlled from the command line using75the ``twistd`` utility::7677 twistd web --wsgi myproject.app7879This example will run a Flask application called ``app`` from a module named80``myproject``.8182Twisted Web supports many flags and options, and the ``twistd`` utility does83as well; see ``twistd -h`` and ``twistd web -h`` for more information. For84example, to run a Twisted Web server in the foreground, on port 8080, with an85application from ``myproject``::8687 twistd -n web --port 8080 --wsgi myproject.app8889.. _Twisted: https://twistedmatrix.com/90.. _Twisted Web: https://twistedmatrix.com/trac/wiki/TwistedWeb9192.. _deploying-proxy-setups:9394Proxy Setups95------------
60 unmodified lines