1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

gevent/uwsgi config: explicitly monkey patch in pywb.apps.wayback as early monkey patch

not available until uwsgi 2.1 is released!
This commit is contained in:
Ilya Kreymer 2016-03-20 18:49:59 -07:00
parent cd65ddafbc
commit 8e90ea6576
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
# Use gevent if available
try:
from gevent.monkey import patch_all; patch_all()
except Exception as e:
pass
from pywb.framework.wsgi_wrappers import init_app from pywb.framework.wsgi_wrappers import init_app
from pywb.webapp.pywb_init import create_wb_router from pywb.webapp.pywb_init import create_wb_router

View File

@ -12,7 +12,10 @@ venv = $(VIRTUAL_ENV)
endif = endif =
gevent = 100 gevent = 100
gevent-early-monkey-patch =
#Not available until uwsgi 2.1
#monkey-patching manually in pywb.apps.wayback
#gevent-early-monkey-patch =
# specify config file here # specify config file here
env = PYWB_CONFIG_FILE=config.yaml env = PYWB_CONFIG_FILE=config.yaml