From 59bd9a6a9adf5f52171198b4511d61dc672221e5 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 11 Dec 2013 09:54:03 +0100 Subject: [PATCH] deprecate the paste command. --- gunicorn/app/pasterapp.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gunicorn/app/pasterapp.py b/gunicorn/app/pasterapp.py index 628aa878..7723ed83 100644 --- a/gunicorn/app/pasterapp.py +++ b/gunicorn/app/pasterapp.py @@ -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()