#!/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"