From a7e78072b01066bd9c799944f8b6bf2ae33fc244 Mon Sep 17 00:00:00 2001 From: Mariusz Klochowicz Date: Mon, 27 Sep 2021 10:04:21 +0930 Subject: [PATCH] Add a script that can start all processes in a single terminal Not suitable for all use-cases as the logs are jumbled up, but it makes regression testing more approachable. Hitting a single `ctrl+c` stops all processes. --- start_all.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 start_all.sh diff --git a/start_all.sh b/start_all.sh new file mode 100755 index 0000000..c9b24fc --- /dev/null +++ b/start_all.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# A simple command to spin up the complete package, ie. both daemons and frontends. +# A single 'ctrl+c' stops all processes. +(trap 'kill 0' SIGINT; cargo run --bin maker & cargo run --bin taker & APP=maker yarn --cwd=./frontend dev & APP=taker yarn --cwd=./frontend dev)