I've configured my Turbogears 1.0.8 application to run under apache
with WGSI, following these instructions:
http://code.google.com/p/modwsgi/wiki/IntegrationWithTurboGears
This works well, however I'm not seeing any traceback information in
the apache error log or on screen when I get an Internal Error.
Here is my WSGI configuration.
/usr/local/turbogears/MyApp/apache/MyApp.wsgi
import sys
sys.path.append('/usr/local/turbogears/MyApp')
sys.stdout = sys.stderr
import os
os.environ['PYTHON_EGG_CACHE'] = '/usr/local/turbogears/python-eggs'
import atexit
import cherrypy
import cherrypy._cpwsgi
import turbogears
print os.getcwd()
turbogears.update_config(configfile="/usr/local/turbogears/MyApp/
dev.cfg", modulename="myapp.config")
turbogears.config.update({'global': {'server.environment':
'production'}})
turbogears.config.update({'global': {'autoreload.on': False}})
turbogears.config.update({'global': {'server.log_to_screen': True}})
import myapp.controllers
cherrypy.root = myapp.controllers.Root()
if cherrypy.server.state == 0:
atexit.register(cherrypy.server.stop)
cherrypy.server.start(init_only=True, server_class=None)
application = cherrypy._cpwsgi.wsgiApp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---