summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-landing
diff options
context:
space:
mode:
Diffstat (limited to 'bin/taler-deployment-landing')
-rwxr-xr-xbin/taler-deployment-landing23
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
+