READ pallets/flask#1938
Created
August 20, 2019 05:19
-
-
Save minhoryang/dc73f2294ca3764a36856b0e860d0b27 to your computer and use it in GitHub Desktop.
FLASK with UDS(Unix Domain Socket)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://palletsprojects.com/p/flask/ | |
from flask import Flask, escape, request | |
app = Flask(__name__) | |
@app.route('/') | |
def hello(): | |
name = request.args.get("name", "World") | |
return f'Hello, {escape(name)}!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flask==1.1.1 | |
Werkzeug==0.15.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
socat TCP-LISTEN:12346 UNIX-CONNECT:/tmp/test & | |
FLASK_APP=app.py flask run --host=unix:///tmp/test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm ... fnproject/fdk-python#58