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

check for osx uwsgi path and use that, otherwise run 'uwsgi'

This commit is contained in:
Ilya Kreymer 2014-01-29 02:12:54 -08:00
parent 84ffec9b8d
commit 9cde058ccf

10
run.sh
View File

@ -25,5 +25,13 @@ else
params="$params --mount $1=mount_run.py --no-default-app --manage-script-name"
fi
uwsgi $params
osx_uwsgi_path="/System/Library/Frameworks/Python.framework/Versions/2.7/bin/uwsgi"
if [ -e "$osx_uwsgi_path" ]; then
uwsgi=$osx_uwsgi_path
else
uwsgi="uwsgi"
fi
$uwsgi $params