serve_application(application=wsgiApp, prefix="/dynamic", port=4000)
-Brian Zhou
On 3/6/06,
Brian Zhou <[EMAIL PROTECTED]> wrote:
A very small cherrypy (2.1.1) program running under SCGI provided by paste (0.5dev_r4745) and scgi-1.10.
###
import cherrypy
import mx.DateTime
from cherrypy._cpwsgi import wsgiApp
from paste.util.scgiserver import serve_application
class HelloWorld:
def index(self):
return "%s Hello world!" % mx.DateTime.now()
index.exposed = True
cherrypy.root = HelloWorld()
# init cherrypy
cherrypy.server.start(initOnly=True, serverClass=None)
# run the server
serve_application(application=wsgiApp, prefix="/prefix", port=4000)
###
_______________________________________________ Cherokee mailing list [email protected] http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
