summaryrefslogtreecommitdiff
path: root/bin/web
blob: b714ad1e1bbc1028f86b644590604875e43a4adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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