aboutsummaryrefslogtreecommitdiffstats
path: root/script/server
blob: 2fc15eb025989346915310ca0b2d1f84f1c1f1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
# By default, if no arguments given, runs a server on port 3000 with
# auto-reloading, and debug switched on. Run with FIXMYSTREET_APP_DEBUG=0 to
# override debug, or provide arguments to override everything.

set -e
cd "$(dirname "$0")/.."

if [ -z "$1" ]; then
    export FIXMYSTREET_APP_DEBUG=${FIXMYSTREET_APP_DEBUG=1}
    set -- --listen :3000 --Reload perllib,conf
fi

bin/cron-wrapper local/bin/plackup -s Starman $@