#!/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[@]}"