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

19 lines
400 B
Bash
Raw Normal View History

#!/bin/sh
mypath=$(cd `dirname $0` && pwd)
app=$2
#cd $mypath/pywb
if [ -z "$app" ]; then
app=pywb.wbapp
fi
if [ -z "$1" ]; then
# Standard root config
uwsgi --static-map /static=$mypath/static --http-socket :8080 -b 65536 --wsgi $app
else
# Test on non-root mount
uwsgi --static-map /static=$mypath/static --http-socket :8080 --mount "$1=$app" --no-default-app --manage-script-name
fi