From 11dcf7e26d27827b9a2ed860dbb4b5786d689e95 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 7 Feb 2022 20:14:11 -0500 Subject: [PATCH] Slightly better run script --- run.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index ab4ed3e..5d2ccf2 100755 --- a/run.sh +++ b/run.sh @@ -13,5 +13,15 @@ # limitations under the License. make clean kitchen -cd kitchen -cargo run -- serve --dir ../examples \ No newline at end of file +pushd web +trunk serve \ + --public-url /ui \ + --proxy-backend http://localhost:3030/api/v1 & +trunkpid=$! +popd +trap "{ echo killing ${trunkpid}; kill -9 ${trunkpid}; }" EXIT +pushd kitchen +echo Starting api server +cargo run -- serve --dir ../examples +popd +# This is ghetto but I'm doing it anyway \ No newline at end of file