summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-14 02:22:27 +0100
committerDan McGee <dan@archlinux.org>2013-01-14 02:23:08 +0100
commit9a9bf24787e5fe94fec00c68a7204c673d5a5206 (patch)
tree59543a0bdb8607d263aef437abe82e4700b084b6
parent2bfdcec869ed4fceb11b9e0a2777fa53d46fb336 (diff)
downloadarchweb-9a9bf24787e5fe94fec00c68a7204c673d5a5206.tar.gz
archweb-9a9bf24787e5fe94fec00c68a7204c673d5a5206.tar.xz
Add current production archweb.wsgi script
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--archweb.wsgi15
1 files changed, 15 insertions, 0 deletions
diff --git a/archweb.wsgi b/archweb.wsgi
new file mode 100644
index 0000000..2e17424
--- /dev/null
+++ b/archweb.wsgi
@@ -0,0 +1,15 @@
+#!/usr/bin/python
+import os
+import sys
+import site
+
+site.addsitedir('/srv/http/archweb-env/lib/python2.7/site-packages')
+sys.path.insert(0, "/srv/http")
+sys.path.insert(0, "/srv/http/archweb")
+
+os.environ['DJANGO_SETTINGS_MODULE'] = "archweb.settings"
+
+os.chdir("/srv/http/archweb")
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()