Slightly better run script

This commit is contained in:
Jeremy Wall 2022-02-07 20:14:11 -05:00
parent ace489924d
commit 11dcf7e26d

14
run.sh
View File

@ -13,5 +13,15 @@
# limitations under the License. # limitations under the License.
make clean kitchen make clean kitchen
cd kitchen pushd web
cargo run -- serve --dir ../examples 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