mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: in dev, delay web server start until api server is started (#17563)
This commit is contained in:
parent
ab2a7006f9
commit
983f656a6b
1 changed files with 6 additions and 0 deletions
|
|
@ -5,4 +5,10 @@ TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
|||
npm --prefix "$TYPESCRIPT_SDK" install
|
||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
||||
|
||||
UPSTREAM="${IMMICH_SERVER_URL:-http://immich-server:2283/}"
|
||||
until wget --spider --quiet "${UPSTREAM}/api/server/config"; do
|
||||
echo 'waiting for api server...'
|
||||
sleep 1
|
||||
done
|
||||
|
||||
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue