mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-14 15:53:28 +01:00
uwsgi: run with gevent loop by default, install gevent in run script
This commit is contained in:
parent
da7532a1f8
commit
bf0996c27a
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# requires uwsgi
|
# requires uwsgi
|
||||||
pip install uwsgi
|
pip install uwsgi
|
||||||
|
pip install gevent
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
"uwsgi install failed"
|
"uwsgi install failed"
|
||||||
@ -13,8 +14,8 @@ mypath=$(cd `dirname $0` && pwd)
|
|||||||
|
|
||||||
params="$mypath/uwsgi.ini"
|
params="$mypath/uwsgi.ini"
|
||||||
|
|
||||||
if [ -n "$VIRTUAL_ENV" ] ; then
|
#if [ -n "$VIRTUAL_ENV" ] ; then
|
||||||
params="$params -H $VIRTUAL_ENV"
|
# params="$params -H $VIRTUAL_ENV"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
uwsgi $params
|
uwsgi $params
|
||||||
|
@ -4,10 +4,14 @@ http-socket = :8080
|
|||||||
endif =
|
endif =
|
||||||
|
|
||||||
master = true
|
master = true
|
||||||
processes = 10
|
|
||||||
buffer-size = 65536
|
buffer-size = 65536
|
||||||
die-on-term = true
|
die-on-term = true
|
||||||
|
|
||||||
|
venv = $(VIRTUAL_ENV)
|
||||||
|
|
||||||
|
gevent = 100
|
||||||
|
gevent-monkey-patch =
|
||||||
|
|
||||||
# specify config file here
|
# specify config file here
|
||||||
env = PYWB_CONFIG_FILE=config.yaml
|
env = PYWB_CONFIG_FILE=config.yaml
|
||||||
wsgi = pywb.apps.wayback
|
wsgi = pywb.apps.wayback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user