debian-mirror-gitlab/bin/web

22 lines
338 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)/..
app_root=$(pwd)
2019-09-30 21:07:59 +05:30
case "$USE_WEB_SERVER" in
puma|"") # and the "" defines default
exec bin/web_puma "$@"
;;
2014-09-02 18:07:02 +05:30
2019-09-30 21:07:59 +05:30
unicorn)
exec bin/web_unicorn "$@"
;;
2014-09-02 18:07:02 +05:30
2019-09-30 21:07:59 +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