mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-22 17:41:09 +00:00
13 lines
400 B
Bash
Executable file
13 lines
400 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
IBIS_BACKEND_PORT="${IBIS_BACKEND_PORT:-8081}"
|
|
|
|
# run processes in parallel
|
|
# https://stackoverflow.com/a/52033580
|
|
(trap 'kill 0' SIGINT;
|
|
# start frontend
|
|
CARGO_TARGET_DIR=target/frontend trunk serve -w src/frontend/ --proxy-backend http://127.0.0.1:$IBIS_BACKEND_PORT &
|
|
# # start backend, with separate target folder to avoid rebuilds from arch change
|
|
cargo watch -x run
|
|
)
|