[Pkg-debile-commits] [debile-web] 01/01: Add simple uWSGI helper script

Matthias Klumpp mak at moszumanska.debian.org
Tue May 6 16:59:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to branch master
in repository debile-web.

commit 139936eb92ea295cae620011c93bb4a1e41a32f3
Author: Matthias Klumpp <matthias at tenstral.net>
Date:   Tue May 6 18:59:34 2014 +0200

    Add simple uWSGI helper script
---
 wsgi.py | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/wsgi.py b/wsgi.py
new file mode 100644
index 0000000..5e21814
--- /dev/null
+++ b/wsgi.py
@@ -0,0 +1,28 @@
+# Copyright (c) 2014 Matthias Klumpp <mak at debian.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+
+from app import app
+from debile.master.utils import init_master
+
+# needs to be called unconditionally
+init_master()
+
+if __name__ == "__main__":
+    app.run()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git



More information about the Pkg-debile-commits mailing list