Initial commit
Some checks failed
Deploy to GitHub Pages / build (push) Has been cancelled
Deploy to GitHub Pages / deploy (push) Has been cancelled

This commit is contained in:
gbanyan
2025-12-14 21:53:34 +08:00
commit 8b07e483d2
43 changed files with 9813 additions and 0 deletions

28
stop.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
# Pedigree Draw - Stop Server Script
cd "$(dirname "$0")"
if [ -f ".server.pid" ]; then
PID=$(cat .server.pid)
if kill -0 "$PID" 2>/dev/null; then
echo "Stopping server (PID: $PID)..."
kill "$PID"
rm -f .server.pid
echo "Server stopped."
else
echo "Server process not found. Cleaning up..."
rm -f .server.pid
fi
else
# Try to find and kill any running vite process for this project
PIDS=$(pgrep -f "vite.*pedigree-draw")
if [ -n "$PIDS" ]; then
echo "Found running server process(es): $PIDS"
echo "Stopping..."
kill $PIDS 2>/dev/null
echo "Server stopped."
else
echo "No server is running."
fi
fi