first commit
This commit is contained in:
18
scripts/dev.sh
Executable file
18
scripts/dev.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
|
||||
cleanup() {
|
||||
if [ -n "${BACKEND_PID:-}" ]; then
|
||||
kill "$BACKEND_PID" >/dev/null 2>&1 || true
|
||||
fi
|
||||
}
|
||||
|
||||
trap cleanup EXIT INT TERM
|
||||
|
||||
"$ROOT_DIR/scripts/dev_backend.sh" &
|
||||
BACKEND_PID=$!
|
||||
|
||||
sleep 2
|
||||
"$ROOT_DIR/scripts/dev_frontend.sh"
|
||||
Reference in New Issue
Block a user