Philipp Schrader | 684a8e8 | 2022-02-25 17:39:28 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # This script runs the webserver and asks it to host all the web pages. |
| 4 | |
Philipp Schrader | 696e3a8 | 2023-02-18 18:24:04 -0800 | [diff] [blame] | 5 | # --- begin runfiles.bash initialization v2 --- |
| 6 | # Copy-pasted from the Bazel Bash runfiles library v2. |
| 7 | set -uo pipefail; set +e; f=bazel_tools/tools/bash/runfiles/runfiles.bash |
| 8 | source "${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 | |
| 16 | runfiles_export_envvars |
| 17 | |
Philipp Schrader | 684a8e8 | 2022-02-25 17:39:28 -0800 | [diff] [blame] | 18 | exec \ |
Philipp Schrader | 696e3a8 | 2023-02-18 18:24:04 -0800 | [diff] [blame] | 19 | "${RUNFILES_DIR}"/org_frc971/scouting/webserver/webserver_/webserver \ |
Philipp Schrader | 175a93c | 2023-02-19 13:13:40 -0800 | [diff] [blame] | 20 | -directory "${RUNFILES_DIR}"/org_frc971/scouting/www/static_files/ \ |
Philipp Schrader | 684a8e8 | 2022-02-25 17:39:28 -0800 | [diff] [blame] | 21 | "$@" |