Commit 52303e84 52303e842b81231043aeadb40cc0aacbbd9b8b4b by zhanghao

commit

1 parent 13afc15c
#!/bin/sh
port=8090
lsof -i :$port | awk '{print $2}'> tmp
pid=$(awk 'NR==2{print}' tmp);
echo "$pid"
if [ -n "$pid" ]; then
kill -9 $pid;
echo "success"
fi
nohup npm run dev > client.log &
lsof -i :$port