开发者

Running eventlet server in bottle framework

i see something like this in bottle.py version 0.9. Doe开发者_如何学编程s that means. i can run bottle server as a eventlet server.

class EventletServer(ServerAdapter):
""" Untested """
def run(self, handler):
    from eventlet import wsgi, listen
    wsgi.server(listen((self.host, self.port)), handler

)


Atlast figured out. how to run bottle server as eventlet in bottle framework.Just should pass the argument server='' inside run. list of supported servers Server adapters in bottle

run(server='eventlet',host='localhost', port=8080, reloader=True)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜