import cherrypy cherrypy config update server socket_host 127 server s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import cherrypy
cherrypy.config.update({'server.socket_host': '127.0.0.1',
'server.socket_port': 8090,
'log.screen': True})
conf = {'/static': {
'tools.staticdir.dir': '/tmp/',
'tools.staticdir.on': True,
}}
class Root:
pass
cherrypy.tree.mount(Root(), '/', conf)
cherrypy.engine.start()