debian-mirror-gitlab/bin/web

21 lines
288 B
Text
Raw Normal View History

2015-04-26 12:48:37 +05:30
#!/bin/sh
2014-09-02 18:07:02 +05:30
2019-09-30 21:07:59 +05:30
set -e
2014-09-02 18:07:02 +05:30
cd $(dirname $0)/..
2019-09-30 21:07:59 +05:30
case "$USE_WEB_SERVER" in
2020-06-23 00:09:42 +05:30
puma|"") # and the "" defines default
exec bin/web_puma "$@"
;;
2014-09-02 18:07:02 +05:30
2020-06-23 00:09:42 +05:30
unicorn)
exec bin/web_unicorn "$@"
;;
2014-09-02 18:07:02 +05:30
2020-06-23 00:09:42 +05:30
*)
echo "Unkown web server used by USE_WEB_SERVER: $USE_WEB_SERVER."
exit 1
;;
2014-09-02 18:07:02 +05:30
esac