mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
deprecate the paste command.
This commit is contained in:
parent
2a09c916a7
commit
59bd9a6a9a
@ -187,5 +187,13 @@ def paste_server(app, gcfg=None, host="127.0.0.1", port=None, *args, **kwargs):
|
|||||||
port = 5000
|
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
|
from gunicorn.app.pasterapp import PasterServerApplication
|
||||||
PasterServerApplication(app, gcfg=gcfg, host=host, port=port, *args, **kwargs).run()
|
PasterServerApplication(app, gcfg=gcfg, host=host, port=port, *args, **kwargs).run()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user