summaryrefslogtreecommitdiff
path: root/bin/taler-deployment-landing
blob: 39d5e28730551818edfdde2a724da5408400995b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# serve landing page via uwsgi

base=$HOME

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"