This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 36
36
REGISTRY_PORT: TCP port to bind to; default is 5000
37
37
GUNICORN_WORKERS: number of worker processes gunicorn should start
38
38
GUNICORN_GRACEFUL_TIMEOUT: timeout in seconds for graceful worker restart
39
- GUNiCORN_SILENT_TIMEOUT: timeout in seconds for restarting silent workers
40
- GUNiCORN_USER: unix user to downgrade priviledges to
41
- GUNiCORN_GROUP: unix group to downgrade priviledges to
39
+ GUNICORN_SILENT_TIMEOUT: timeout in seconds for restarting silent workers
40
+ GUNICORN_USER: unix user to downgrade priviledges to
41
+ GUNICORN_GROUP: unix group to downgrade priviledges to
42
+ GUNICORN_ACCESS_LOG_FILE: File to log access to
43
+ GUNICORN_ERROR_LOG_FILE: File to log errors to
42
44
"""
43
45
44
46
@@ -66,7 +68,9 @@ def run_gunicorn():
66
68
67
69
args = [
68
70
gunicorn_path , 'gunicorn' ,
69
- '--access-logfile' , '-' , '--debug' ,
71
+ '--access-logfile' , env .source ('GUNICORN_ACCESS_LOG_FILE' ),
72
+ '--error-logfile' , env .source ('GUNICORN_ERROR_LOG_FILE' ),
73
+ '--debug' ,
70
74
'--max-requests' , '100' ,
71
75
'-k' , 'gevent' ,
72
76
'--graceful-timeout' , env .source ('GUNICORN_GRACEFUL_TIMEOUT' ),
Original file line number Diff line number Diff line change 11
11
'SETTINGS_FLAVOR' : 'dev' ,
12
12
'GUNICORN_WORKERS' : '4' ,
13
13
'GUNICORN_GRACEFUL_TIMEOUT' : '3600' ,
14
- 'GUNICORN_SILENT_TIMEOUT' : '3600'
14
+ 'GUNICORN_SILENT_TIMEOUT' : '3600' ,
15
+ 'GUNICORN_ACCESS_LOG_FILE' : '-' ,
16
+ 'GUNICORN_ERROR_LOG_FILE' : '-'
15
17
}
16
18
17
19
You can’t perform that action at this time.
0 commit comments