READ pallets/flask#1938
-
-
Save dtmrc/7df7013085d2c1ea7330e03bf1ec9d56 to your computer and use it in GitHub Desktop.
FLASK with UDS(Unix Domain Socket)
This file contains hidden or 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 hidden or 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 hidden or 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