Answers for "gevent with flask"

0

gevent with flask

# flask_app/pywsgi.py
from gevent import monkey
monkey.patch_all()

import os
from gevent.pywsgi import WSGIServer
from app import app

http_server = WSGIServer(('0.0.0.0', int(os.environ['PORT_APP'])), app)
http_server.serve_forever()
Posted by: Guest on March-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language