Added application alias to make the Python application function in the Docker howto.

Daniel Edgar D.Edgar at f5.com
Thu Jul 18 18:34:58 UTC 2019


# HG changeset patch
# User Daniel Edgar <edgar at f5.com>
# Date 1563474528 25200
#      Thu Jul 18 11:28:48 2019 -0700
# Node ID 6f301c8192834d19a2c866ba79005613f8374e56
# Parent  3e0adcea05fd295ff84aa38c4259bf1fc0c3264f
Added alias to make the Python application function in the Docker howto.

diff --git a/source/howto/docker.rst b/source/howto/docker.rst
--- a/source/howto/docker.rst
+++ b/source/howto/docker.rst
@@ -53,6 +53,7 @@

        > from flask import Flask
        > app = Flask(__name__)
+       > application = app
        >
        > @app.route('/')
        > def hello_world():

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20190718/03fb0f0b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 596 bytes
Desc: patch.diff
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20190718/03fb0f0b/attachment.obj>


More information about the unit mailing list