commit 6cd2ffa4a2144911a77a517c7f714cbda69f7d78 parent ca5291bdcbeeec2923687dc0e6e26da9df180307 Author: Florian Dold <florian.dold@gmail.com> Date: Mon, 21 Nov 2016 18:44:47 +0100 standalone landing Diffstat:
| M | bin/taler-deployment-landing | | | 23 | +++++++++++++++++------ |
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git 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 +