diff --git a/run-uwsgi.sh b/run-uwsgi.sh index 79da11df..0c33e5b6 100755 --- a/run-uwsgi.sh +++ b/run-uwsgi.sh @@ -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 diff --git a/uwsgi.ini b/uwsgi.ini index 38f79b5f..c86ee10d 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -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