1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-pushy/Example/testHotUpdate/scripts/start-rn.sh

11 lines
215 B
Bash
Raw Normal View History

2023-03-18 14:43:17 +08:00
#!/usr/bin/env bash
trap 'kill $RN_PID' EXIT
PLATFORM=$1
2023-03-30 12:50:33 +08:00
kill -9 $(lsof -i :8081 | awk '{print $2}' | tail -n +2) & npm start &
2023-03-18 14:43:17 +08:00
RN_PID=$!
sleep 2 && curl>/dev/null http://localhost:8081/index.bundle
wait $RN_PID