web.config.debug is set to False by default if you run the latest version of gunicorn.
The latest version of gunicorn passes SERVER_SOFTWARE environment variable to the worker process and web.py sets debug=False when SERVER_SOFTWARE is available in env. Anand 2010/10/31 kevin <[email protected]>: > On Sat, Oct 30, 2010 at 7:30 PM, Anand Chitipothu <[email protected]> > wrote: >> >> 2010/10/31 kevin <[email protected]>: >> > code.py: >> > app = web.application(urls, locals()) >> > app_wsgi = app.wsgifunc(session_mw) >> > >> > >> > >> > >> > gunicorn code:app_wsgi >> > >> > if i run gunicorn like this, web.config.debug is True. what is the >> > correct >> > way to deploy using gunicorn so web.config.debug is False? >> >> The only way right now is to set web.config.debug = False before >> creating the app. > > that makes it difficult for development/deployment, changing it everytime. > > if i run gunicorn like this: > PHP_FCGI_CHILDREN=3 gunicorn code:app_wsgi > > web.py does not start in debug mode. do you know what is going on? is it ok > to do like this? > > -- > You received this message because you are subscribed to the Google Groups > "web.py" 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/webpy?hl=en. > -- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
