Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

run-packager.sh 533B

12345678910111213141516
  1. #!/bin/bash
  2. # This script is executed from Xcode to start the React packager for Debug
  3. # targets.
  4. if [[ "$CONFIGURATION" = "Debug" ]]; then
  5. if nc -w 5 -z localhost 8081 ; then
  6. if ! curl -s "http://localhost:8081/status" | grep -q "packager-status:running" ; then
  7. echo "Port 8081 already in use, packager is either not running or not running correctly"
  8. exit 2
  9. fi
  10. else
  11. open -g "$SRCROOT/../../node_modules/react-native/scripts/launchPackager.command" || echo "Can't start packager automatically"
  12. fi
  13. fi