chore: build sdk while server is starting (#22083)

This commit is contained in:
Jason Rasmussen 2025-09-16 12:48:31 -04:00 committed by GitHub
parent 8821c251c3
commit 41641ec000
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,8 +1,9 @@
#!/usr/bin/env sh
echo "Build dependencies for Immich Web"
cd /usr/src/app || exit
pnpm --filter @immich/sdk build
COUNT=0
UPSTREAM="${IMMICH_SERVER_URL:-http://immich-server:2283/}"
UPSTREAM="${UPSTREAM%/}"
@ -14,5 +15,4 @@ until wget --spider --quiet "${UPSTREAM}/api/server/config" > /dev/null 2>&1; do
sleep 1
done
echo "Connected to $UPSTREAM, starting Immich Web..."
pnpm --filter @immich/sdk build
pnpm --filter immich-web exec vite dev --host 0.0.0.0 --port 3000