replace mod_wsgi par uwsgi V00.12
authorymh <ymh.work@gmail.com>
Fri, 01 Feb 2013 17:47:24 +0100
changeset 41 73a0b5e9d663
parent 40 404322a4ee9a
child 42 ac8b747e1275
replace mod_wsgi par uwsgi
sbin/sync/sync_regardssignes
web/regardssignes/django_wsgi.py
--- a/sbin/sync/sync_regardssignes	Fri Feb 01 17:07:35 2013 +0100
+++ b/sbin/sync/sync_regardssignes	Fri Feb 01 17:47:24 2013 +0100
@@ -10,7 +10,7 @@
 #text2unix ~/tmp/regardssignes_V$1/web
 
 if [ -d ~/tmp/regardssignes_V$1/web ]; then
-    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/
+    cat <<EOT | rsync -Cvrlz --delete --filter=". -" ~/tmp/regardssignes_V$1/web/ iri@web.iri.centrepompidou.fr:/iridata/www/amateur/atelier/
 + core
 P .htpasswd
 P .htaccess
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/regardssignes/django_wsgi.py	Fri Feb 01 17:47:24 2013 +0100
@@ -0,0 +1,11 @@
+import os
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'regardssignes.settings'
+ 
+import django.core.handlers.wsgi
+
+application = django.core.handlers.wsgi.WSGIHandler()
+
+if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
+    import pydevd #@UnresolvedImport
+    pydevd.settrace(suspend=False)