This commit is contained in:
2017-05-08 09:39:40 -04:00
parent 852c4e888b
commit b681d263e3
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -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()
+1 -2
View File
@@ -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',