2013-12-28 17:39:43 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
mypath=$(cd `dirname $0` && pwd)
|
|
|
|
|
2014-01-19 21:13:48 -08:00
|
|
|
app=$2
|
2014-01-23 01:38:09 -08:00
|
|
|
#cd $mypath/pywb
|
2013-12-28 17:39:43 -08:00
|
|
|
if [ -z "$app" ]; then
|
2014-01-23 01:38:09 -08:00
|
|
|
app=pywb.wbapp
|
2013-12-28 17:39:43 -08:00
|
|
|
fi
|
|
|
|
|
2014-01-19 21:13:48 -08:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
# Standard root config
|
2014-01-23 01:38:09 -08:00
|
|
|
uwsgi --static-map /static=$mypath/static --http-socket :8080 -b 65536 --wsgi $app
|
2014-01-19 21:13:48 -08:00
|
|
|
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
|
|
|
|
|