This commit is contained in:
Viet An
2026-05-25 11:47:57 +07:00
parent 09b8a096d9
commit 5f2a98977b
4 changed files with 232 additions and 5744 deletions

View File

@@ -1,4 +1,13 @@
#!/bin/bash
#!/bin/bash
python3 envdev.py
kill -9 $(lsof -i:3000 -t) 2> /dev/null
if command -v lsof &> /dev/null; then
# Linux (Bash)
kill -9 $(lsof -i:3000 -t) 2> /dev/null
else
# Windows (Git Bash)
PID=$(netstat -ano | grep ":3000" | awk '{print $5}' | head -1)
[ -n "$PID" ] && taskkill //F //PID $PID 2> /dev/null
fi
npm run dev