X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=devel%2Fnotmuch-web%2Fnmgunicorn.py;fp=devel%2Fnotmuch-web%2Fnmgunicorn.py;h=e71ba12a2c0f93c1f3c1272b1509de5ea206f2e5;hp=0000000000000000000000000000000000000000;hb=3a311ed5ecf3c685cf274c355ac65e21f934fa83;hpb=08da7f25e5ebf6536002c9a544d687a1d28aea3e diff --git a/devel/notmuch-web/nmgunicorn.py b/devel/notmuch-web/nmgunicorn.py new file mode 100644 index 00000000..e71ba12a --- /dev/null +++ b/devel/notmuch-web/nmgunicorn.py @@ -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()