summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbottle.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bottle.py b/bottle.py
index a590c4c..18aa69f 100755
--- a/bottle.py
+++ b/bottle.py
@@ -3461,7 +3461,7 @@ class GunicornServer(ServerAdapter):
""" Untested. See http://gunicorn.org/configure.html for options. """
def run(self, handler):
- from gunicorn.app.base import Application
+ from gunicorn.app.base import BaseApplication
if self.host.startswith("unix:"):
config = {'bind': self.host}
@@ -3470,9 +3470,10 @@ class GunicornServer(ServerAdapter):
config.update(self.options)
- class GunicornApplication(Application):
- def init(self, parser, opts, args):
- return config
+ class GunicornApplication(BaseApplication):
+ def load_config(self):
+ for key, value in config.items():
+ self.cfg.set(key, value)
def load(self):
return handler