blob: de71dd5fd64797811f258b31afa8acbb22ac5098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/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"
|