deprecate the paste command.

This commit is contained in:
benoitc 2013-12-11 09:54:03 +01:00
parent 2a09c916a7
commit 59bd9a6a9a

View File

@ -187,5 +187,13 @@ def paste_server(app, gcfg=None, host="127.0.0.1", port=None, *args, **kwargs):
port = 5000
"""
util.warn("""This command is deprecated.
You should now use the `--paste` option. Ex.:
gunicorn --paste development.ini
""")
from gunicorn.app.pasterapp import PasterServerApplication
PasterServerApplication(app, gcfg=gcfg, host=host, port=port, *args, **kwargs).run()