Files
mengyastore/dev.sh
2026-03-18 22:06:17 +08:00

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