summaryrefslogtreecommitdiff
path: root/tools/run
blob: 88262c6342b9b6a078e5a393e6a9c078c28d63fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash -e

## tools/run
##
## Runs the service, and runs a development version of the UI, with hot
## reloading and live code changes enabled.

PIDS=()

trap 'kill "${PIDS[@]}"' EXIT

cargo run &
PIDS+=($!)
npm run dev -- --host &
PIDS+=($!)

wait "${PIDS[@]}"