mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
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.
29 lines
1.2 KiB
Bash
Executable File
29 lines
1.2 KiB
Bash
Executable File
#!/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"
|