Tech/OSS/CherryPy
Jump to navigation
Jump to search
To listen on all IP4v and IPv6 interfaces try...
host = "::" port = 8080 cherrypy.tree.mount(myappclass(), '/', conf) cherrypy.server.socket_host = host cherrypy.server.socket_port = port cherrypy.engine.start() cherrypy.engine.block()
Where you have a config object called conf and your myappclass has some exposed methods of course.