debian-mirror-gitlab/bin/web

21 lines
288 B
Text
Raw Normal View History

2015-04-26 09:18:37 +02:00
#!/bin/sh
2014-09-02 14:37:02 +02:00
2019-09-30 21:07:59 +05:30
set -e
2014-09-02 14:37:02 +02:00
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 14:37:02 +02:00
2020-06-23 00:09:42 +05:30
unicorn)
exec bin/web_unicorn "$@"
;;
2014-09-02 14:37:02 +02:00
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 14:37:02 +02:00
esac