]> git.notmuchmail.org Git - notmuch/blobdiff - devel/notmuch-web/nmgunicorn.py
devel/notmuch-web: single user web front end using python-cffi
[notmuch] / devel / notmuch-web / nmgunicorn.py
diff --git a/devel/notmuch-web/nmgunicorn.py b/devel/notmuch-web/nmgunicorn.py
new file mode 100644 (file)
index 0000000..e71ba12
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env python3
+
+# to launch nmweb from gunicorn.
+
+from nmweb import urls, index, search, show
+import web
+
+app = web.application(urls, globals())
+
+# get the wsgi app from web.py application object
+wsgiapp = app.wsgifunc()