Skip to content

Commit

Permalink
fix: Gunicorn Adapter works again (upstream changed API)
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Sep 13, 2010
1 parent 119352f commit 8c9d51b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,8 @@ class GunicornServer(ServerAdapter):
def run(self, handler):
from gunicorn.arbiter import Arbiter
from gunicorn.config import Config
arbiter = Arbiter(Config({'bind': "%s:%d" % (self.host, self.port), 'workers': 4}), handler)
handler.cfg = Config({'bind': "%s:%d" % (self.host, self.port), 'workers': 4})
arbiter = Arbiter(handler)
arbiter.run()


Expand Down

0 comments on commit 8c9d51b

Please sign in to comment.