immich/web/bin/immich-web
2025-07-05 14:55:01 +00:00

21 lines
461 B
Bash
Executable File

#!/usr/bin/env sh
echo "Setup dev env"
(
cd /usr/src/app || exit
FROZEN=1 OFFLINE=1 make setup-web-dev
)
COUNT=0
UPSTREAM="${IMMICH_SERVER_URL:-http://immich-server:2283/}"
until wget --spider --quiet "${UPSTREAM}/api/server/config" >/dev/null 2>&1; do
if [ $((COUNT % 10)) -eq 0 ]; then
echo "Waiting for $UPSTREAM to start..."
fi
COUNT=$((COUNT + 1))
sleep 1
done
echo "Connected to $UPSTREAM"
pnpm exec vite dev --host 0.0.0.0 --port 3000