diff --git a/flask_common.py b/flask_common.py index 8f58a6a..a5485cd 100644 --- a/flask_common.py +++ b/flask_common.py @@ -130,7 +130,7 @@ class Common(object): return redirect(url_for('static', filename='favicon.ico'), code=301) - def serve(self, workers=None): + def serve(self, workers=None, **kwargs): """Serves the Flask application.""" if self.app.debug: print crayons.yellow('Booting Flask development server...') @@ -140,6 +140,6 @@ class Common(object): print crayons.yellow('Booting Gunicorn...') # Start the web server. - server = GunicornServer(self.app, workers=workers or number_of_gunicorn_workers()) + server = GunicornServer(self.app, workers=workers or number_of_gunicorn_workers(), **kwargs) server.run() diff --git a/setup.py b/setup.py index 2ea9bec..d846cb2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ if sys.argv[-1] == 'publish': setup( name='Flask-Common', - version='0.1.0', + version='0.1.1', url='https://github.com/kennethreitz/flask-common', license='BSD', author='Kenneth Reitz', @@ -24,7 +24,6 @@ setup( py_modules=['flask_common'], # if you would be using a package instead use packages instead # of py_modules: - # packages=['flask_sqlite3'], zip_safe=False, include_package_data=True, platforms='any',