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

21 lines
261 B
Bash
Raw Permalink Normal View History

#!/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