Permalink
Browse files

uwsgi: run with gevent loop by default, install gevent in run script

  • Loading branch information...
1 parent da7532a commit bf0996c27aa63339e420b4cfaa3ab51b4de9bf39 @ikreymer committed Mar 23, 2015
Showing with 9 additions and 4 deletions.
  1. +4 −3 run-uwsgi.sh
  2. +5 −1 uwsgi.ini
View
@@ -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
@@ -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

0 comments on commit bf0996c

Please sign in to comment.