Closed nickponline closed 8 years ago
I currently run a flask server in a thread using:
app = flask.Flask(name) dispatcher = wsgiserver.WSGIPathInfoDispatcher({'/': app}) server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8000), dispatcher) server_thread = threading.Thread(target=server.start) server_thread.daemon = True server_thread.start()
I would like to add a socket route to this server and continue to run it it a thread instead of with gunicorn? Is this possible?
Not that I know of.
I currently run a flask server in a thread using:
app = flask.Flask(name) dispatcher = wsgiserver.WSGIPathInfoDispatcher({'/': app}) server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8000), dispatcher) server_thread = threading.Thread(target=server.start) server_thread.daemon = True server_thread.start()
I would like to add a socket route to this server and continue to run it it a thread instead of with gunicorn? Is this possible?