1#!/usr/bin/env bash 2 3PACKAGER_PORT=2137 4PACKAGER_IP=`ifconfig | grep -v 127.0.0.1 | grep inet | grep -v inet6 | awk 'NR==1 {print $2}'` 5PACKAGER_HOST="$PACKAGER_IP:$PACKAGER_PORT" 6HOST_FILE='./assets/dev-menu-packager-host' 7 8touch $HOST_FILE 9echo $PACKAGER_HOST > $HOST_FILE 10 11# Ignore any changes made to this file. The packager host should stay local 12# but it cannot just be gitignored — it must be committed and published. 13git update-index --skip-worktree $HOST_FILE 14 15expo start --port $PACKAGER_PORT 16