Skip to content

Commit

Permalink
Added 'cheroot' server adapter to list of server names, so it can be …
Browse files Browse the repository at this point in the history
…selected from the command line and by name.

Alos added cheroot after cherrypy in the 'auto' adapter to make it future proof.

(backported from commit 617d08a)
[juergh: Adjust context.]
Signed-off-by: Juerg Haefliger <[email protected]>
  • Loading branch information
defnull authored and juergh committed May 24, 2022
1 parent 888aa8e commit a3ba0eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -3002,7 +3002,9 @@ def run(self, handler):

class AutoServer(ServerAdapter):
""" Untested. """
adapters = [WaitressServer, PasteServer, TwistedServer, CherryPyServer, WSGIRefServer]
adapters = [WaitressServer, PasteServer, TwistedServer, CherryPyServer,
CherootServer, WSGIRefServer]

def run(self, handler):
for sa in self.adapters:
try:
Expand All @@ -3016,6 +3018,7 @@ def run(self, handler):
'wsgiref': WSGIRefServer,
'waitress': WaitressServer,
'cherrypy': CherryPyServer,
'cheroot': CherootServer,
'paste': PasteServer,
'fapws3': FapwsServer,
'tornado': TornadoServer,
Expand Down

0 comments on commit a3ba0eb

Please sign in to comment.