experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(mobile): stable dev port and kill stale vite in dev-ios-sim.sh

+4 -8
+3 -7
backend/tauri-mobile/dev-ios-sim.sh
··· 10 10 SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" 11 11 CONF="$SCRIPT_DIR/src-tauri/tauri.conf.json" 12 12 13 - # Use a stable default port, only pick a random one if it's in use 13 + # Use a stable default port, kill any stale vite process on it first 14 14 DEFAULT_PORT=5188 15 - if python3 -c "import socket; s=socket.socket(); s.bind(('',${DEFAULT_PORT})); s.close()" 2>/dev/null; then 16 - PORT=$DEFAULT_PORT 17 - else 18 - PORT=$(python3 -c "import socket; s=socket.socket(); s.bind(('',0)); print(s.getsockname()[1]); s.close()") 19 - echo "[dev] Default port $DEFAULT_PORT in use, using $PORT instead" 20 - fi 15 + lsof -ti tcp:$DEFAULT_PORT | xargs kill 2>/dev/null || true 16 + PORT=$DEFAULT_PORT 21 17 echo "[dev] Using port $PORT" 22 18 23 19 # Get the Mac's IP address for simulator to connect (can't use localhost in simulator)
+1 -1
backend/tauri-mobile/src-tauri/tauri.conf.json
··· 6 6 "build": { 7 7 "beforeBuildCommand": "npm run build", 8 8 "frontendDist": "../dist", 9 - "devUrl": "http://192.168.50.143:5188" 9 + "devUrl": "http://192.168.50.69:58598" 10 10 }, 11 11 "app": { 12 12 "windows": [