16 lines
229 B
Bash
16 lines
229 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cleanup() {
|
|
if [ -n "${BACK_PID:-}" ]; then
|
|
kill "$BACK_PID" 2>/dev/null || true
|
|
fi
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
(cd mengyastore-backend && go run .) &
|
|
BACK_PID=$!
|
|
|
|
cd mengyastore-frontend
|
|
npm run dev
|