mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
21 lines
545 B
Plaintext
21 lines
545 B
Plaintext
bind='unix:/tmp/gunicorn.sock'
|
|
daemon=True
|
|
debug=False
|
|
logfile='/var/log/gunicorn.log'
|
|
loglevel='info'
|
|
pidfile='/var/run/gunicorn.pid'
|
|
workers=1
|
|
umask=0
|
|
|
|
# for systems with nobody and no group
|
|
user="nobody"
|
|
group="nogroup"
|
|
|
|
after_fork=lambda server, worker: server.log.info(
|
|
"worker=%s spawned pid=%s" % (worker.id, str(worker.pid)))
|
|
|
|
before_fork=lambda server, worker: server.log.info(
|
|
"worker=%s spawning" % worker.id)
|
|
|
|
before_exec=lambda server: server.log.info("forked child, reexecuting")
|