summaryrefslogtreecommitdiff
path: root/bin/web
blob: f640abf0fbce60c1472685036bbcec21987afc0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

cd $(dirname $0)/..
app_root=$(pwd)

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