#!/bin/sh
# script/run: build with script/build, then run netwatch-server locally
# with its defaults: port 8080, reports stored in data/reports.
set -eu

ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"

main() {
    cd "$ROOT"
    "$ROOT/script/build"
    exec ./netwatch-server "$@"
}

main "$@"
