summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/run b/tools/run
index 8560c31..04ae2d8 100755
--- a/tools/run
+++ b/tools/run
@@ -5,8 +5,12 @@
## Runs the service, and runs a development version of the UI, with hot
## reloading and live code changes enabled.
-PIDS=()
+# Stop `cargo run` and `npx vite dev` from racing with each other with
+# respect to the build output by forcing a build _first_, while neither
+# is running.
+cargo build
+PIDS=()
trap 'kill "${PIDS[@]}"' EXIT
cargo run &