cherrypy config update server socket_host address server socket_port p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cherrypy.config.update({'server.socket_host': address,
'server.socket_port': port,
'log.screen': True})
conf = {'/static': {
'tools.staticdir.dir': op.join(path, 'static'),
'tools.staticdir.on': True,
}}
cherrypy.tree.mount(Root(), '/', conf)
cherrypy.engine.start()