2011-10-11 66 views

回答

2

没有配置文件。所有形式的配置都是通过代码完成的。

一个简单的网站,配置例如使用cheerypy.config

#cheerypy.config is flat dictionary that you can modify using 
cherrypy.config.update({'server.socket_host': '10.10.10.10', 
         'server.socket_port': 80, 
         }) 

你可以得到更多的信息here

0

你是如何调用你的CherryPy应用程序 - 通过cherryd或通过调用自己的Python进程或使用像mod_wsgi或gunicorn?让我们知道,这可以帮助我们确定您的配置应该放在哪里。