Hi all, I'm looking for the simplest way to run web.py apps with reasonable reliability and performance. What do you think of using cherrypy's wsgiserver module to run web.py? Is it reliable and fast enough? I like the fact that it's a standalone module, defined within a single __init__.py file. I also liked that you can hook it up with just a couple lines of code in your main application.py file.
Would the following snippet be useful if written up as a longer cookbook explanation? ----------------------------- import web import wsgiserver # wsgiserver is a directory module that contains the file from # http://www.cherrypy.org/browser/trunk/cherrypy/wsgiserver/__init__.py?format=raw urls = ( '/', 'index', ) class index: def GET(self): return 'index says hello' app = web.application(urls, globals(), autoreload=True) application = app.wsgifunc() if __name__ == '__main__': server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), application, server_name='just some cherrypy wsgiserver') # server.ssl_certificate = <filename> # server.ssl_private_key = <filename> try: server.start() except KeyboardInterrupt: server.stop() ---------------------------------- -Sam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
