diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-21 18:44:47 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-21 18:44:47 +0100 |
commit | 6cd2ffa4a2144911a77a517c7f714cbda69f7d78 (patch) | |
tree | caf99e2965ad3297dea5dd5baf4c1dba8cbd6e17 /bin/taler-deployment-landing | |
parent | ca5291bdcbeeec2923687dc0e6e26da9df180307 (diff) | |
download | deployment-6cd2ffa4a2144911a77a517c7f714cbda69f7d78.tar.gz deployment-6cd2ffa4a2144911a77a517c7f714cbda69f7d78.tar.bz2 deployment-6cd2ffa4a2144911a77a517c7f714cbda69f7d78.zip |
standalone landing
Diffstat (limited to 'bin/taler-deployment-landing')
-rwxr-xr-x | bin/taler-deployment-landing | 23 |
1 files changed, 17 insertions, 6 deletions
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 + |