mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
fix html_rewriter missing ; on entities js rewriter: only rewrite full document.domain PathIndexPrefixResolver using binsearch on path index, for #9 resolvers moved to replay_resolvers.py improve path-resolver logic: each resolver returns an array of possible files (could be from primary or secondary storage). then, iterate over all possible files from all resolvers until a successful load, or raise exception if all failed
19 lines
400 B
Bash
Executable File
19 lines
400 B
Bash
Executable File
#!/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
|
|
|