Skip to content
Myr

Document Werkzeug's run_simple for dispatch, #225.

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

authored by Ron DuPlain · committed by Ron DuPlain · parent 0e98a08 · Browse files · 2 files+18 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

2 files+18 added−0 removed

  • other:+18 added−0 removed

2 files+18 added−0 removed

modified:docs/deploying/index.rst+2 added
1.. _deployment:23Deployment Options4==================56Depending on what you have available there are multiple ways to run
17 unmodified lines
modified:docs/patterns/appdispatch.rst+16 added
13 unmodified lines
14<larger-applications>` is that in this case you are running the same or15different Flask applications that are entirely isolated from each other.16They run different configurations and are dispatched on the WSGI level.171819Working with this Document20--------------------------2122Each of the techniques and examples below results in an ``application`` object23that can be run with any WSGI server. For production, see :ref:`deployment`.24For development, Werkzeug provides a builtin server for development available25at :func:`werkzeug.serving.run_simple`::2627 from werkzeug.serving import run_simple28 run_simple('localhost', 5000, application, use_reloader=True)2930Note that :func:`run_simple <werkzeug.serving.run_simple>` is not intended for31use in production. Use a :ref:`full-blown WSGI server <deployment>`.323334Combining Applications35----------------------3637If you have entirely separated applications and you want them to work next
133 unmodified lines