Paul J. Davis
999dd68ca3
Load app after the configuration.
...
This allows for affecting system variables like sys.path before import
searches for the application.
Fixes issue #44 .
2010-04-26 19:59:46 -04:00
benoitc
40e5751fb7
s/workerclass/worker_class & fix gunicorn django
2010-04-22 21:56:37 +02:00
benoitc
9409839668
fix paster usage
2010-04-22 21:45:39 +02:00
benoitc
5b2f98fca4
fix erros spotted by pyflakes
2010-04-22 19:41:29 +02:00
Paul J. Davis
0c935d06c7
Got the Sync and Eventlet workers running.
2010-04-15 21:20:17 -04:00
Paul J. Davis
51f1f22665
Refactoring worker code.
...
Also went through gunicorn.main lightly.
2010-04-15 20:08:28 -04:00
benoitc
3a2e3edb3e
add possibility to trace all events of gunicorn. Run gunicorn --spew .
2010-04-14 19:49:26 +02:00
benoitc
451647d5ad
remove arbiter import from main
2010-03-17 00:32:02 +01:00
benoitc
23927f39b1
allows custom arbiter
2010-03-16 22:12:26 +01:00
Paul J. Davis
50e8355c10
Swap slashes for hyphen.
...
Thanks for the suggestion by asenchi.
2010-02-27 01:28:51 -05:00
Paul J. Davis
8b38298114
Update the log formatting.
...
Different date format to remove sub-second timing.
Added process id's to all log messages.
Updated various log messages.
2010-02-27 01:16:57 -05:00
benoitc
6c48e91904
allow config file to set proc_name. spotted by @jbergstroem on irc.
...
thanks!
2010-02-24 14:20:28 +01:00
benoitc
756d74ed0d
fix config path and make sure we can use it in django admin command too
2010-02-23 15:39:18 +01:00
benoitc
85c773098c
s/app_name/proc_name. Update faq to say that you can set the
...
process_name in conf.
2010-02-22 19:15:48 +01:00
benoitc
aea5133183
no cookie for me. but let me the coffee
2010-02-22 18:33:34 +01:00
benoitc
dbc07e669f
"applicationi name" -> "processus name"
2010-02-22 18:26:12 +01:00
benoitc
386fbd6e13
fix umask so we use it only when creating socket.
2010-02-22 16:52:32 +01:00
benoitc
5afec8d726
add setproctitle support. -n allow to customize the name. by default
...
it's the arg passed to command line for wsgi app, module.settings for
djang and ini file path for paster
2010-02-22 16:29:35 +01:00
benoitc
6c12f313e3
on irc jbergstroem noticed that gunicorn behavior is different than
...
nginx one in the way it manages processes uid/gid. Only nginx workers
get uid/gid and master if launch as root stay root. This patch give ti
gunicorn the same behavior.
2010-02-22 14:20:06 +01:00
benoitc
71a9a1efeb
convert umask in one place
2010-02-21 16:43:19 +01:00
benoitc
6bddc03db6
default umask
2010-02-21 13:58:26 +01:00
benoitc
c40697879c
umask everywhere
2010-02-21 12:22:12 +01:00
benoitc
54c8444285
umask should be an octal
2010-02-21 11:59:00 +01:00
benoitc
40514ca2eb
versions of python < 2.6.2 don't manage unsigned int for groups like on osx or fedora
...
s Please enter the commit message for your changes. Lines starting
2010-02-21 11:06:43 +01:00
Benoit Chesneau
ea59668787
fix debug in paster entry point
2010-02-17 11:07:57 +01:00
Benoit Chesneau
85b12af1ca
make sur app can override options if needed. While I'm here clean a
...
little the code
2010-02-17 10:59:33 +01:00
Benoit Chesneau
443a6c8363
refactor paster entry point to use Config object.
2010-02-17 10:01:05 +01:00
Benoit Chesneau
51a58e58c5
make sure address is a bytestring. While I'm here fix django
...
run_gunicorn command to use Config and set logger
2010-02-17 09:42:32 +01:00
Benoit Chesneau
d92b669117
fix DJANGO_SETTINGS_MODULE environment variable. It depends on settings
...
module.
2010-02-16 19:22:50 +01:00
Benoit Chesneau
3c82b1985b
some code documentation.
2010-02-16 17:17:47 +01:00
Benoit Chesneau
f4098aa20d
some people put their settings in a module like settings/__init__.py .
...
this change allows it.
2010-02-16 16:41:52 +01:00
Benoit Chesneau
3a04c58dee
we have no defaults in optparse object so set them manually in usage.
2010-02-16 16:02:34 +01:00
Benoit Chesneau
e7155f4714
obviously since we already used it, it's here. would have been better if we
...
testes the right. fixed!
variable
2010-02-16 15:23:30 +01:00
Benoit Chesneau
87336be46b
remove unused import/var and some fixes
2010-02-16 14:24:40 +01:00
Benoit Chesneau
9fea7dd34b
useless print
2010-02-16 11:08:14 +01:00
Benoit Chesneau
13d9288d69
refactor config and put all in config object
2010-02-16 10:08:07 +01:00
Benoit Chesneau
6497d5aab2
some fixes.
2010-02-16 08:33:49 +01:00
jbergstroem
7dc51eb92b
Merge configs from default,file and argv
2010-02-16 08:16:49 +01:00
jbergstroem
5636eb6d00
Switch to execfile instead of imp, suggested by davisp. Introduce default config dict
2010-02-16 08:13:34 +01:00
jbergstroem
34d81a7703
Add method for returning a config (python) file as dict. Heavily inspired by pyconf
2010-02-16 08:12:39 +01:00
Benoit Chesneau
374f0898a9
fix issue #15 . patch provided by @lericson . Thanks!
2010-02-15 20:28:09 +01:00
Benoit Chesneau
6e3fec40fc
update README. while I'm here add short option for workers
2010-02-15 15:57:58 +01:00
Benoit Chesneau
dabf3395aa
some will put it as integer in conf file
2010-02-15 15:37:49 +01:00
benoitc
5cc19f7037
allow changin worker user/group in non daemon mode. fix authorization of
...
unix socket too
2010-02-15 15:27:29 +01:00
Benoit Chesneau
2e170bb3ad
fix paster serve
2010-02-15 14:43:39 +01:00
Benoit Chesneau
d00712da2e
while we are here just parse all the address in the conf file. so we
...
could have unix socket support in paster app too by just passing the
host
2010-02-15 14:41:13 +01:00
Benoit Chesneau
7036e424bb
reuse code
2010-02-15 14:35:25 +01:00
Benoit Chesneau
df74d1679f
useless spaces
2010-02-15 14:05:15 +01:00
Benoit Chesneau
53814c1af4
add user/group option. uid/gid or username/groupname can now be passed
...
in daemon mode.
2010-02-15 14:03:48 +01:00
benoitc
07d252eb4d
add umask option
2010-02-15 11:30:15 +01:00