diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-28 21:54:15 -0500 |
| commit | 810ebb811c40b50ddb95bb9559d7515f46ec2052 (patch) | |
| tree | 993abbd49907b399af933a44fb40e2e88c6933a5 /tools/run | |
| parent | d23685c0ea46c92c75d43b6d6a361597241dd95e (diff) | |
| parent | 5ce6c9f6277c43caf7413cce255af7bdc947e74c (diff) | |
Merge branch 'main' into wip/stylize
Diffstat (limited to 'tools/run')
| -rwxr-xr-x | tools/run | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -1,14 +1,17 @@ #!/bin/bash -e -## tools/run [ARGS...] +## tools/run +## +## Runs the service, and runs a development version of the UI, with hot +## reloading and live code changes enabled. -if [ -z ${PILCROW_DEV+x} ]; then - cargo run -- "$@" -else - npm run dev & PIDS[0]=$! - cargo run -- "$@" & PIDS[1]=$! +PIDS=() - trap "kill ${PIDS[*]}" SIGINT +trap 'kill "${PIDS[@]}"' EXIT - wait -fi +cargo run & +PIDS+=($!) +npm run dev -- --host & +PIDS+=($!) + +wait "${PIDS[@]}" |
