From 9cde058ccf20aca52940ae1113d362ca9d79c58c Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Wed, 29 Jan 2014 02:12:54 -0800 Subject: [PATCH] check for osx uwsgi path and use that, otherwise run 'uwsgi' --- run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index c4af9c4a..c7f834f4 100755 --- a/run.sh +++ b/run.sh @@ -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