This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree 5 files changed +5
-7
lines changed
5 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ sudo python-pip install docker-registry[bugsnag]
437
437
#### Run it
438
438
439
439
```
440
- gunicorn --access-logfile - --debug - k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi: application
440
+ gunicorn --access-logfile - -k gevent -b 0.0.0.0:5000 -w 4 --max-requests 100 docker_registry.wsgi: application
441
441
```
442
442
443
443
### How do I setup user accounts?
Original file line number Diff line number Diff line change 19
19
# logging has been configured
20
20
cfg = config .load ()
21
21
logging .basicConfig (format = '%(asctime)s %(levelname)s: %(message)s' ,
22
- level = getattr (logging , cfg .loglevel .upper ()))
22
+ level = getattr (logging , cfg .loglevel .upper ()),
23
+ datefmt = "%d/%b/%Y:%H:%M:%S %z" )
23
24
24
25
from .lib import mirroring
25
26
from .server import __version__
Original file line number Diff line number Diff line change 41
41
GUNICORN_GROUP: unix group to downgrade priviledges to
42
42
GUNICORN_ACCESS_LOG_FILE: File to log access to
43
43
GUNICORN_ERROR_LOG_FILE: File to log errors to
44
+ GUNICORN_OPTS: extra options to pass to gunicorn
44
45
"""
45
46
46
47
@@ -70,7 +71,6 @@ def run_gunicorn():
70
71
gunicorn_path , 'gunicorn' ,
71
72
'--access-logfile' , env .source ('GUNICORN_ACCESS_LOG_FILE' ),
72
73
'--error-logfile' , env .source ('GUNICORN_ERROR_LOG_FILE' ),
73
- '--debug' ,
74
74
'--max-requests' , '100' ,
75
75
'-k' , 'gevent' ,
76
76
'--graceful-timeout' , env .source ('GUNICORN_GRACEFUL_TIMEOUT' ),
Original file line number Diff line number Diff line change 22
22
port = env .source ('REGISTRY_PORT' )
23
23
app .debug = True
24
24
app .run (host = host , port = port )
25
- # Or you can run:
26
- # gunicorn --access-logfile - --log-level debug --debug -b 0.0.0.0:5000 \
27
- # -w 1 wsgi:application
28
25
else :
29
26
# For uwsgi
30
27
app .logger .setLevel (logging .INFO )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ blinker==1.3
2
2
Flask==0.10.1
3
3
Flask-cors==1.3.0
4
4
gevent==1.0.1
5
- gunicorn==18.0
5
+ gunicorn==19.1
6
6
PyYAML==3.11
7
7
requests==2.3.0
8
8
rsa==3.1.4
You can’t perform that action at this time.
0 commit comments