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)
精彩评论