Stabilize local dev daemon homes

Use a checkout-local .dev/paseo-home for root and worktree dev flows so development daemons do not collide with the packaged app home.

Split server, app, and desktop dev entrypoints, seed worktree homes from the source checkout metadata, and keep desktop dev on its own user-data directory and Expo port.
This commit is contained in:
Mohamed Boudra
2026-06-07 23:18:32 +07:00
parent d55e1622cb
commit 7c8b290e2f
11 changed files with 349 additions and 141 deletions

28
scripts/dev-app.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
export PATH="$ROOT_DIR/node_modules/.bin:$PATH"
source "$SCRIPT_DIR/dev-home.sh"
export PASEO_LISTEN="${PASEO_LISTEN:-127.0.0.1:6768}"
configure_dev_paseo_home
EXPO_PORT="${EXPO_PORT:-8081}"
DAEMON_ENDPOINT="$(resolve_dev_daemon_endpoint)"
echo "══════════════════════════════════════════════════════"
echo " Paseo App Dev"
echo "══════════════════════════════════════════════════════"
echo " Metro: http://localhost:${EXPO_PORT}"
echo " Daemon: ${DAEMON_ENDPOINT}"
echo " Home: ${PASEO_HOME}"
echo "══════════════════════════════════════════════════════"
exec cross-env \
BROWSER="${BROWSER:-none}" \
APP_VARIANT=development \
EXPO_PUBLIC_LOCAL_DAEMON="$DAEMON_ENDPOINT" \
npm run start:expo --workspace=@getpaseo/app -- --port "$EXPO_PORT"