fix doc and make sure we get the --paste option

This commit is contained in:
benoitc 2014-03-09 07:28:46 -07:00
parent b35e368515
commit 1e8b375038
3 changed files with 11 additions and 14 deletions

View File

@ -121,18 +121,18 @@ to ensure that is to run this command from the same directory as your
manage.py file.) manage.py file.)
You can use the You can use the
[--env](http://docs.gunicorn.org/en/latest/settings.html#raw-env) option `--env <http://docs.gunicorn.org/en/latest/settings.html#raw-env>`_ option
to set the path to load the settings. In case you need it you can also to set the path to load the settings. In case you need it you can also
add your application path to PYTHONPATH using the add your application path to PYTHONPATH using the
[--pythonpath](http://docs.gunicorn.org/en/latest/settings.html#pythonpath) `--pythonpath <http://docs.gunicorn.org/en/latest/settings.html#pythonpath>`_
option. option.
paster serve Paste
++++++++++++ +++++
If you are a user/developer of a paste-compatible framework/app (as If you are a user/developer of a paste-compatible framework/app (as
Pyramid, Pylons and Turbogears) you can use the gunicorn Pyramid, Pylons and Turbogears) you can use the gunicorn
[--paste](http://docs.gunicorn.org/en/latest/settings.html#paste) option `--paste <http://docs.gunicorn.org/en/latest/settings.html#paste>`_ option
to run your application. to run your application.
For example: For example:

View File

@ -71,20 +71,17 @@ to ensure that is to run this command from the same directory as your
manage.py file.) manage.py file.)
You can use the You can use the
[--env](http://docs.gunicorn.org/en/latest/settings.html#raw-env) option `--env <http://docs.gunicorn.org/en/latest/settings.html#raw-env>`_ option
to set the path to load the settings. In case you need it you can also to set the path to load the settings. In case you need it you can also
add your application path to PYTHONPATH using the add your application path to PYTHONPATH using the
[--pythonpath](http://docs.gunicorn.org/en/latest/settings.html#pythonpath) `--pythonpath <http://docs.gunicorn.org/en/latest/settings.html#pythonpath>`_ option.
option.
Paste
-----
paster serve
------------
If you are a user/developer of a paste-compatible framework/app (as If you are a user/developer of a paste-compatible framework/app (as
Pyramid, Pylons and Turbogears) you can use the gunicorn Pyramid, Pylons and Turbogears) you can use the gunicorn
[--paste](http://docs.gunicorn.org/en/latest/settings.html#paste) option `--paste <http://docs.gunicorn.org/en/latest/settings.html#paste>`_ option
to run your application. to run your application.
For example: For example:

View File

@ -1217,7 +1217,7 @@ class PythonPath(Setting):
class Paste(Setting): class Paste(Setting):
name = "paste" name = "paste"
section = "Server Mechanics" section = "Server Mechanics"
cli = ["--paster"] cli = ["--paste", "--paster"]
meta = "STRING" meta = "STRING"
validator = validate_string validator = validate_string
default = None default = None