summaryrefslogtreecommitdiff
path: root/run_mach2.py
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2015-12-20 15:50:43 +0000
committerMichaël Ball <michael.ball@gmail.com>2015-12-20 15:50:43 +0000
commit0afbc40a9fa04746c40f27bfffef6ba4ed462d11 (patch)
tree7b26fc1d9a21b7f5686f3afd63238e486d709a24 /run_mach2.py
parent3f14c56860ff67e2d2a689fe3f362ad7a25631d5 (diff)
Run as Gevent WSGI app
Diffstat (limited to 'run_mach2.py')
-rw-r--r--run_mach2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/run_mach2.py b/run_mach2.py
new file mode 100644
index 0000000..4c12f2b
--- /dev/null
+++ b/run_mach2.py
@@ -0,0 +1,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()