22 Commits

Author SHA1 Message Date
benoitc
e4fbc805b6 fix error spotted by @andrewsg 2012-10-28 06:56:00 +01:00
benoitc
53ce50bc7b obvious syntax fixes preparing python3 support 2012-10-24 12:11:15 +02:00
benoitc
cdd3e1dc2b check parents if we are in the worker. fix #348 2012-06-27 08:08:57 +02:00
benoitc
ace4a0d6ec qdd development2.ini for tests 2012-06-24 15:42:55 +02:00
benoitc
12a0e55bcf Revert "fix issue #348 ."
This reverts commit da637dfd13b520fc190b86967dfecc06bf97a2b4.
2012-06-19 10:31:06 +02:00
benoitc
118c571898 fix issue #348 .
Rather than testing the parent pd, test if the parent pid is still
alive. Only use it in gevent for now.
2012-06-04 21:17:11 +02:00
benoitc
6603ec551a fix django wsgi example
The wsgi file generated by django wasn't adding the project to
PYTHONPATH. This change fix it by detecting it based on the wsgi.py
path.
2012-05-15 10:24:39 +02:00
benoitc
f4ddf0f7a7 fix pylons example 2012-05-15 10:11:48 +02:00
benoitc
f67993eb87 fix testing.
Note: it was also a good way to test HUP on master. worked like a charm.
2012-02-21 12:34:50 +01:00
benoitc
98f57f3daf add admin so we can test with SQL eventually 2012-02-20 22:17:36 +01:00
benoitc
fd3fae1afd add app to test django 1.4 2012-02-19 22:09:32 +01:00
benoitc
cc43f89ef5 compatibility with django 1.4 and more related fixes.
- handle new way to launch applications in django 1.4
- simplify the way we discover the project path and settings
- add --pythonpath & --settings options for django applications
- still compatible with older versions (>=1.1)
-handle DJANGO_SETTINGS_MODULE env.

close #283, #275, #274, #241
2012-02-19 21:56:41 +01:00
Randall Leeds
f02b0d9cca update longpoll examples
Add a longpoll example for tornado and terminate the lines we send with
a '\n'.
2011-11-07 17:14:37 -08:00
benoitc
428c7a3b5e put back logging confing in gunicorn_paster. spotted by @oit on github.
thanks!
2011-08-22 09:45:06 +02:00
benoitc
17b47a376b get settings module name on fork rather than on app initialization. It
allows people to use relative path in their projects. fix issues #219,
and #213
2011-08-21 07:31:58 +02:00
benoitc
0f53a83f49 main problem of current run_gunicorn reload behaviour is that settings
aren't correctly reloaded. First attempt to remove it from sys.modules
introduced more problem than it solved.

This new attempt, just get the module, reload it and populate currently
loaded settings with new values.
2011-06-25 10:28:27 +02:00
benoitc
76aef105d5 fix django example to work with 1.3 . 2011-05-18 18:22:55 +02:00
benoitc
fcab6bc144 after multiple attempts it's easier to just reload the app. People using
mange.py have to use USR2 signal if they want to upgrade the django
version instread of HUP. On the other hand, upgrading django version
with HUP is possible with gunicorn_django command.
2011-05-11 23:11:02 +02:00
benoitc
239010a476 update doc 2011-03-23 07:46:55 +01:00
benoitc
374bb7bfff add pyramid app example 2011-03-23 07:32:37 +01:00
benoitc
7715199b48 it's better to test when you use the right code to do it. We had a
blocking operation django example (we read a file already on the fs and
recreate another which blocked async schedulers).

While I'm here ease the code of eventlet worker. Just use the convenient
eventlet.serve function which already manage what we do and revert sopme
useless changes in body and header parsing.
2010-09-02 14:55:56 +02:00
Paul J. Davis
3c7d5320fa Large refactor of the documentation and website. 2010-05-30 14:36:06 -04:00