1 2 3 4 5 6 7
from gevent import monkey monkey.patch_all() from gevent.wsgi import WSGIServer from mach2 import app http_server = WSGIServer(('', 5000), app) http_server.serve_forever()