diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 13:01:01 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-11-02 13:01:01 -0400 |
| commit | e2908921d25347e3aab45afed9b9b4b807f79c25 (patch) | |
| tree | 9e0e7361d9b397ad92c9109523c072e2c5c66bba /tools | |
| parent | 8088a8bd8bced9127edcb2284b993332d291b443 (diff) | |
| parent | a32b0ab6ad7995b8fff98e423793a7c6521ea1e9 (diff) | |
Merge remote-tracking branch 'origin/wip/mobile'
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/run | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,7 +1,15 @@ #!/bin/bash -e ## tools/run [ARGS...] -## -## Run the server in development mode. Shorthand for `cargo run`. -cargo run -- "$@" +if [ -z ${HI_DEV+x} ]; then + tools/build-ui + cargo run -- "$@" +else + npm run dev & PIDS[0]=$! + cargo run -- "$@" & PIDS[1]=$! + + trap "kill ${PIDS[*]}" SIGINT + + wait +fi |
