1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00
pywb/run-uwsgi.sh
Ilya Kreymer bd21fec6d4 update run-uwsgi.sh and add run-gunicorn.sh
update README and INSTALL, fix typo
only list wb handlers on home page by default
pep8 fixes
2014-04-03 08:56:18 -07:00

21 lines
261 B
Bash
Executable File

#!/bin/sh
# requires uwsgi
pip install uwsgi
if [ $? -ne 0 ]; then
"uwsgi install failed"
exit 1
fi
mypath=$(cd `dirname $0` && pwd)
params="$mypath/uwsgi.ini"
if [ -n "$VIRTUAL_ENV" ] ; then
params="$params -H $VIRTUAL_ENV"
fi
uwsgi $params