From 6cd2ffa4a2144911a77a517c7f714cbda69f7d78 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 21 Nov 2016 18:44:47 +0100 Subject: standalone landing --- bin/taler-deployment-landing | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'bin/taler-deployment-landing') diff --git a/bin/taler-deployment-landing b/bin/taler-deployment-landing index 39d5e28..2bcd642 100755 --- a/bin/taler-deployment-landing +++ b/bin/taler-deployment-landing @@ -9,9 +9,20 @@ export PATH="$base/deployment":$PATH ulimit -c $((100 * 1024)) mkdir -p $HOME/sockets -# run uwsgi without an app, and turn 500 into 404 -exec uwsgi --check-static $HOME/landing \ - --static-index index.html \ - --socket $HOME/sockets/landing.uwsgi \ - --chmod-socket=660 \ - --error-route-status "500 return:404 Not Found" + +if [ ${TALER_CONFIG_STANDALONE:-0} = 1 ]; then + # run uwsgi without an app, and turn 500 into 404 + exec uwsgi --check-static $HOME/landing \ + --static-index index.html \ + --socket $HOME/sockets/landing.uwsgi \ + --chmod-socket=660 \ + --error-route-status "500 return:404 Not Found" +else + # run uwsgi without an app, and turn 500 into 404 + exec uwsgi --static-map /$USER=$HOME/landing \ + --static-index index.html \ + --socket $HOME/sockets/landing.uwsgi \ + --chmod-socket=660 \ + --error-route-status "500 return:404 Not Found" +fi + -- cgit v1.2.3