105 Commits

Author SHA1 Message Date
benoitc
5e8eeadc44 sync documentation
generally speakiing people shouldn't update the settings.rst but make
sure that settings.p is correctly filled.
2014-06-01 09:59:29 +02:00
Ben Oswald
9ade14ae78 add on_exit hook 2014-06-01 09:53:36 +02:00
Matt Robenolt
d7c7c59bdb Consistent usage of @proxy_to_app named location
This can be confusing since `location / {}` and `location @proxy_to_app {}` were both being used.
2014-05-26 20:24:09 -07:00
TedWantsMore
6248208ae0 Update deploy.rst 2014-05-21 15:49:50 -07:00
Randall Leeds
223ab2a3f3 Remove reference to unmaintained py24 branch 2014-05-17 17:04:29 -07:00
Berker Peksag
ecdae40c68 Sync settings documentation with gunicorn/config.py. 2014-05-18 03:01:18 +03:00
Randall Leeds
b492ee92e1 Merge pull request #756 from berkerpeksag/fix-markup-log-format-doc
Fix markup of the access_log_format documentation.
2014-05-17 16:44:30 -07:00
Berker Peksag
39dbe983c3 Fix markup of the access_log_format documentation. 2014-05-18 02:02:33 +03:00
Berker Peksag
f5f5461ab8 Fix a couple of typos. 2014-05-18 01:30:36 +03:00
Benoit Chesneau
bab40df767 Merge pull request #754 from berkerpeksag/sysconf-outdated-info
Remove an outdated paragraph about getting CPU information.
2014-05-18 00:06:37 +02:00
Berker Peksag
dcaf2d7f9b Remove an outdated paragraph about getting CPU information.
Python 2.5 or older versions are not supported by Gunicorn.

Also, fixed a typo: mentionned -> mentioned
2014-05-18 01:01:35 +03:00
Berker Peksag
109880a8c3 Update installation docs to mention about pip.
Other changes:

- Minor markup and style changes
- Use https in URLs
- Remove the "python setup.py develop" part from the
  documentation. It's useful for development.
2014-05-17 23:55:41 +03:00
Randall Leeds
63967597a0 Fix mixed up worker signal handling
Commit 81241907ffcf94517ffa14b8427205906b61b540 changed the signal
handling by switching the roles of `TERM` and `QUIT` for the arbiter
so that `TERM` is graceful and `QUIT` is not.

At the time, workers performed graceful shutdown on `QUIT` and quick
shutdown on `TERM` and `INT`. This behavior was also changed so that
`QUIT` (and `INT`) cause a quick shutdown and `TERM` is graceful.

However, the documentation incorrectly reversed the roles of the worker
signals and the arbiter was not updated to use the correct signals.

This commit fixes the documentation and the arbiter signals.
2014-05-13 11:12:01 -07:00
Randall Leeds
fd22ea24ae Merge pull request #727 from benoitc/feature/651
PR that rebase #651. Should also fix #625.

Add the capability to load gunicorn.base.Application without the
loading of the arguments of the command line.
2014-05-07 14:53:29 -07:00
Stéphane Wirtel
33d35a1a66 Work In Progress: Move the custom application section to a specific file and add it into the TOC 2014-04-30 11:41:18 +02:00
Stéphane Wirtel
a44807f9f5 Add an example of a standalone app 2014-04-22 21:48:57 +02:00
Benoit Chesneau
3bf6d0e770 Merge pull request #719 from bobzilladev/access-timing
Fix microseconds logging, add decimal seconds.
2014-04-13 09:53:25 +02:00
Sébastien Fievet
ce3f9e18bb Typo 2014-04-01 11:18:03 +02:00
Bob Hagemann
5361fff766 Fix microseconds logging, add decimal seconds.
Apache will log %D microseconds over 1 million for requests that take over a second, this change sync's that access log behavior since the formatting seems to be based on that. So a request that takes 1 second and 30 milliseconds will have 1000030 for this atom.

This pull request  also adds a %L atom for decimal seconds for a quick human-readable latency number. In the above example it would output 1.000030 to the log.
2014-03-27 11:33:16 -07:00
benoitc
1e8b375038 fix doc and make sure we get the --paste option 2014-03-09 07:28:46 -07:00
Randall Leeds
b35e368515 Remove references to deprecated console scripts 2014-03-08 18:21:36 -08:00
Randall Leeds
e5442332fe Support running specific paster apps from .ini
Close #400
2014-03-08 18:16:03 -08:00
benoitc
2edb2089ba update doc for django and paster integration
gunicorn_django and gunicorn_paster commands are now deprecated so
remove them from the doc. While I am here, update the integration doc.
2014-03-08 17:46:08 -08:00
benoitc
81241907ff switch QUIT and TERM signal
With this change, when gunicorn receives a QUIT all the workers are
killed immediately and exit and TERM is used for the graceful shutdown.

Note: the old behaviour was based on the NGINX but the new one is more
correct according the following doc:

https://www.gnu.org/software/libc/manual/html_node/Termination-Signals.html

also it is complying with the way the signals are sent by heroku:

https://devcenter.heroku.com/articles/python-faq#what-constraints-exist-when-developing-applications-on-heroku
2014-03-08 17:14:06 -08:00
Kirill Zaborsky
9ce722e638 gafferp renamed to gaffer 2014-02-21 17:14:31 +03:00
W. Trevor King
2277901a72 Deprecate the --debug setting
"Limits the number of worker processes to 1" hasn't been true since
06a4dc6 (fix one error in gunicorn_paster, global conf was ignored,
2010-06-22), although it was true when the line was added in 3c7d532
(Large refactor of the documentation and website, 2010-05-22).

"changes some error handling that's sent to clients" hasn't been true
since feb86d3 (don't display the traceback in the HTTP response,
2013-09-27).

The only remaining actions that --debug had were disabling --preload
and hiding debug-level config logging.  The former seems useless (just
disable --preload directly) and the latter at doesn't seem useful
enough for a new setting (just turn down --log-level).  With this
commit, --preload always works and you always get debug-level config
logging.

I left a stub Debug entry in gunicorn.config, which we can leave in
place while folks convert any gunicorn scripts and configurations to
drop --debug.  When the time comes, we can just remove that entry.  I
also the boolean-config tests to use --preload, since that will still
be around after we remove the dummy Debug entry.

Fixes #700.
2014-02-13 12:40:41 -08:00
Rik
80198278ce Update settings.rst
Gevent version should be 0.13 at least, since Gunicorn needs the gevent.server support (also see: http://blog.gevent.org/2010/07/14/gevent-0-13-0-released/)
2014-02-04 10:11:16 +01:00
Randall Leeds
0226b2cd1f Clarify secure scheme header warning in deploy doc
Gunicorn doesn't restrict the X-Forwarded-For header, only the
scheme header.
2014-02-04 00:26:03 -08:00
Randall Leeds
f375f929de Regenerate settings.rst 2014-01-30 16:50:08 -08:00
Randall Leeds
5d13659f0e Documentation formatting 2014-01-30 16:49:47 -08:00
Randall Leeds
1f7d3429c2 Add documentation for nginx X-Forwarded-*
Fix #571
2014-01-30 16:30:58 -08:00
Malthe Borch
764d9d439a Also include access log in the syslog handler. 2014-01-24 17:41:05 +00:00
Randall Leeds
6ed6b1399e docs typo -- fix #678 2014-01-14 13:53:15 -08:00
George Notaras
64f555eb7e Improved the documentation that is packaged in the RPM.
Until now, only the documentation in source form was packaged.
This changeset improves the RPM generator so that the compiled HTML
version of the documentation is packaged. Also, other informative
documents (README, LICENSE, NOTICE, THANKS) and an example server
configuration file have been included.

Finally, the Sphinx documentation's conf.py has been improved so
that it is easier to compile the docs using the default theme.
2014-01-13 03:23:38 +02:00
Stéphane Wirtel
b9d4afb7bd Add an example for the gunicorn.app.base.BaseApplication 2014-01-01 20:35:05 +01:00
benoitc
26a2e104cf fix typo 2013-12-26 13:54:35 +01:00
benoitc
f7d9979d5b fix doc for rtd 2013-12-26 13:42:17 +01:00
benoitc
77a30d3671 ease the doc. test with the default rtd theme 2013-12-26 13:19:36 +01:00
benoitc
2a09c916a7 improve systemd conf 2013-12-11 09:50:24 +01:00
benoitc
047ef65afc fix doc
fix #656
2013-12-11 09:33:01 +01:00
Alasdair Nicol
a01d143aae Use lowercase 'true' in example config to be consistent 2013-12-02 00:08:26 +00:00
benoitc
2aa66555f8 Revert "Update configure.rst"
This reverts commit 3b843fd942cdb2e5623887073d1acb0d759066c8.

I was tired, we should either remove the that and then the  is or keep
a is or... But this latest commit was changing the meaning.
2013-11-19 08:42:12 +01:00
Mieszko
3b843fd942 Update configure.rst 2013-11-15 12:24:46 +01:00
benoitc
5ff75b194c regenerate settings 2013-09-26 22:50:16 +02:00
Stephen DiCato
79ed7851ae Fix a single typo. 2013-09-13 15:08:21 -04:00
benoitc
24fe380982 typos 2013-08-28 00:40:48 +02:00
benoitc
d3b1687e03 update the changes 2013-08-28 00:31:27 +02:00
benoitc
ded4df3ed5 we support python 3 since a while 2013-08-19 10:38:10 +02:00
Randall Leeds
90fb09f618 Don't reload the paster app when run with pserve
Using gunicorn with paster command line causes the application to
load before gunicorn. In this case, there is no choice but to preload
the application. Document this fact.

Fixes #528.
2013-08-06 03:29:58 -07:00
Randall Leeds
0c34c4213b typo 2013-08-05 22:04:53 -07:00