mirror of
https://github.com/kennethreitz/flask-common.git
synced 2026-06-05 14:50:17 +00:00
v0.1.1
This commit is contained in:
+2
-2
@@ -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()
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user