-
Notifications
You must be signed in to change notification settings - Fork 66
/
gunicorn.conf.py
21 lines (18 loc) · 965 Bytes
/
gunicorn.conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
bind = "unix:/tmp/gunicorn.snipt.sock"
daemon = True # Whether work in the background
debug = False # Some extra logging
logfile = ".gunicorn.log" # Name of the log file
loglevel = "info" # The level at which to log
pidfile = ".gunicorn.pid" # Path to a PID file
workers = 9 # Number of workers to initialize
umask = 0 # Umask to set when daemonizing
user = None # Change process owner to user
group = None # Change process group to group
proc_name = "gunicorn-snipt" # Change the process name
tmp_upload_dir = None # Set path used to store temporary uploads
def post_fork(server, worker):
server.log.info("Worker spawned (pid: %s)" % worker.pid)
import settings, monitor
if settings.DEBUG:
server.log.info("Starting change monitor.")
monitor.start(interval=1.0)