From 1e8b375038156615a41dfb2d79c5c320218ca508 Mon Sep 17 00:00:00 2001 From: benoitc Date: Sun, 9 Mar 2014 07:28:46 -0700 Subject: [PATCH] fix doc and make sure we get the --paste option --- README.rst | 10 +++++----- docs/source/run.rst | 13 +++++-------- gunicorn/config.py | 2 +- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/README.rst b/README.rst index b4d106e2..e0a06b5b 100644 --- a/README.rst +++ b/README.rst @@ -121,18 +121,18 @@ to ensure that is to run this command from the same directory as your manage.py file.) You can use the -[--env](http://docs.gunicorn.org/en/latest/settings.html#raw-env) option +`--env `_ option to set the path to load the settings. In case you need it you can also add your application path to PYTHONPATH using the -[--pythonpath](http://docs.gunicorn.org/en/latest/settings.html#pythonpath) +`--pythonpath `_ option. -paster serve -++++++++++++ +Paste ++++++ If you are a user/developer of a paste-compatible framework/app (as Pyramid, Pylons and Turbogears) you can use the gunicorn -[--paste](http://docs.gunicorn.org/en/latest/settings.html#paste) option +`--paste `_ option to run your application. For example: diff --git a/docs/source/run.rst b/docs/source/run.rst index a906faa2..fbd59b34 100644 --- a/docs/source/run.rst +++ b/docs/source/run.rst @@ -71,20 +71,17 @@ to ensure that is to run this command from the same directory as your manage.py file.) You can use the -[--env](http://docs.gunicorn.org/en/latest/settings.html#raw-env) option +`--env `_ option to set the path to load the settings. In case you need it you can also add your application path to PYTHONPATH using the -[--pythonpath](http://docs.gunicorn.org/en/latest/settings.html#pythonpath) -option. +`--pythonpath `_ option. - - -paster serve ------------- +Paste +----- If you are a user/developer of a paste-compatible framework/app (as Pyramid, Pylons and Turbogears) you can use the gunicorn -[--paste](http://docs.gunicorn.org/en/latest/settings.html#paste) option +`--paste `_ option to run your application. For example: diff --git a/gunicorn/config.py b/gunicorn/config.py index a56450bb..f272bcc9 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -1217,7 +1217,7 @@ class PythonPath(Setting): class Paste(Setting): name = "paste" section = "Server Mechanics" - cli = ["--paster"] + cli = ["--paste", "--paster"] meta = "STRING" validator = validate_string default = None