debian-mirror-gitlab/bin/web
2020-06-23 00:09:42 +05:30

20 lines
288 B
Bash
Executable file

#!/bin/sh
set -e
cd $(dirname $0)/..
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