blob: f1d712339a6811e64837c494410e214ceee82bf3 [file] [log] [blame]
Philipp Schrader684a8e82022-02-25 17:39:28 -08001#!/bin/bash
2
3# This script runs the webserver and asks it to host all the web pages.
4
Philipp Schrader696e3a82023-02-18 18:24:04 -08005# --- begin runfiles.bash initialization v2 ---
6# Copy-pasted from the Bazel Bash runfiles library v2.
7set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash
8source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
9 source "$(grep -sm1 "^$f " "${RUNFILES_MANIFEST_FILE:-/dev/null}" | cut -f2- -d' ')" 2>/dev/null || \
10 source "$0.runfiles/$f" 2>/dev/null || \
11 source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
12 source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
13 { echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
14# --- end runfiles.bash initialization v2 ---
15
16runfiles_export_envvars
17
Philipp Schrader684a8e82022-02-25 17:39:28 -080018exec \
Philipp Schrader696e3a82023-02-18 18:24:04 -080019 "${RUNFILES_DIR}"/org_frc971/scouting/webserver/webserver_/webserver \
Philipp Schrader175a93c2023-02-19 13:13:40 -080020 -directory "${RUNFILES_DIR}"/org_frc971/scouting/www/static_files/ \
Philipp Schrader684a8e82022-02-25 17:39:28 -080021 "$@"