2014-07-04 03:45:20 -04:00
|
|
|
#!/bin/sh
|
2013-10-09 10:45:32 -04:00
|
|
|
|
2019-07-03 00:11:48 -04:00
|
|
|
set -e
|
|
|
|
|
2013-10-09 10:45:32 -04:00
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-07-03 00:11:48 -04:00
|
|
|
case "$USE_WEB_SERVER" in
|
2020-05-25 11:07:58 -04:00
|
|
|
puma|"") # and the "" defines default
|
|
|
|
exec bin/web_puma "$@"
|
|
|
|
;;
|
2013-10-09 10:45:32 -04:00
|
|
|
|
2020-05-25 11:07:58 -04:00
|
|
|
unicorn)
|
|
|
|
exec bin/web_unicorn "$@"
|
|
|
|
;;
|
2013-10-09 10:45:32 -04:00
|
|
|
|
2020-05-25 11:07:58 -04:00
|
|
|
*)
|
|
|
|
echo "Unkown web server used by USE_WEB_SERVER: $USE_WEB_SERVER."
|
|
|
|
exit 1
|
|
|
|
;;
|
2013-10-09 10:45:32 -04:00
|
|
|
esac
|