gitlab-org--gitlab-foss/bin/web

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