I'd like to run the CherryPy WSGI server as a Windows
service. I tried
tweaking the usual code for putting CherryPy into a service,
but I got
an error:
<class 'exceptions.TypeError'>: start() got an
unexpected keyword
argument 'init_only'
This looks like the WSGI server doesn't have the same
interface as the
standard CherryPy server. This impression is reinforced by
the fact
that when running from the console (no service code)
CherryPyWSGIServer
doesn't handle Ctrl-C properly (by stopping), where the
normal CP
server does - my naive assumption was that the two servers
shared a lot
of code, so things like this should be the same.
My non-service code looks like this:
from cherrypy._cpwsgiserver import CherryPyWSGIServer
from wsgi_sample import simple_app
server = CherryPyWSGIServer(('', 8888), simple_app)
server.start()
Am I using CherryPyWSGIServer correctly? (I can post the
service code
if necessary, but it's a lot longer because of the service
boilerplate).
Thanks,
Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users googlegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribe googlegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---
|