debian-mirror-gitlab/bin/web
2019-09-30 21:07:59 +05:30

21 lines
338 B
Bash
Executable file

#!/bin/sh
set -e
cd $(dirname $0)/..
app_root=$(pwd)
case "$USE_WEB_SERVER" in
puma|"") # and the "" defines default
exec bin/web_puma "$@"
;;
unicorn)
exec bin/web_unicorn "$@"
;;
*)
echo "Unkown web server used by USE_WEB_SERVER: $USE_WEB_SERVER."
exit 1
;;
esac