fixes #1413
This commit is contained in:
+4
-12
@@ -7,22 +7,16 @@ Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
|
|||||||
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
|
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
|
||||||
|
|
||||||
|
|
||||||
This is a WSGI handler for Apache
|
This is a WSGI handler
|
||||||
Requires apache+mod_wsgi.
|
|
||||||
|
|
||||||
In httpd.conf put something like:
|
|
||||||
|
|
||||||
LoadModule wsgi_module modules/mod_wsgi.so
|
|
||||||
WSGIScriptAlias / /path/to/wsgihandler.py
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
# change these parameters as required
|
# change these parameters as required
|
||||||
LOGGING = False
|
LOGGING = False
|
||||||
SOFTCRON = False
|
SOFTCRON = False
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
|
|
||||||
path = os.path.dirname(os.path.abspath(__file__))
|
path = os.path.dirname(os.path.abspath(__file__))
|
||||||
os.chdir(path)
|
os.chdir(path)
|
||||||
@@ -32,8 +26,6 @@ if not os.path.isdir('applications'):
|
|||||||
|
|
||||||
sys.path = [path] + [p for p in sys.path if not p == path]
|
sys.path = [path] + [p for p in sys.path if not p == path]
|
||||||
|
|
||||||
sys.stdout = sys.stderr
|
|
||||||
|
|
||||||
import gluon.main
|
import gluon.main
|
||||||
|
|
||||||
if LOGGING:
|
if LOGGING:
|
||||||
|
|||||||
Reference in New Issue
Block a user