1
0
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:
Ilya Kreymer 2015-03-23 11:05:17 -07:00
parent da7532a1f8
commit bf0996c27a
2 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,7 @@
# requires uwsgi
pip install uwsgi
pip install gevent
if [ $? -ne 0 ]; then
"uwsgi install failed"
@ -13,8 +14,8 @@ mypath=$(cd `dirname $0` && pwd)
params="$mypath/uwsgi.ini"
if [ -n "$VIRTUAL_ENV" ] ; then
params="$params -H $VIRTUAL_ENV"
fi
#if [ -n "$VIRTUAL_ENV" ] ; then
# params="$params -H $VIRTUAL_ENV"
#fi
uwsgi $params

View File

@ -4,10 +4,14 @@ http-socket = :8080
endif =
master = true
processes = 10
buffer-size = 65536
die-on-term = true
venv = $(VIRTUAL_ENV)
gevent = 100
gevent-monkey-patch =
# specify config file here
env = PYWB_CONFIG_FILE=config.yaml
wsgi = pywb.apps.wayback