mirror of
https://github.com/immich-app/immich.git
synced 2025-06-22 23:11:06 -04:00
fix: in dev, delay web server start until api server is started (#17563)
This commit is contained in:
parent
ab2a7006f9
commit
983f656a6b
@ -5,4 +5,10 @@ TYPESCRIPT_SDK=/usr/src/open-api/typescript-sdk
|
|||||||
npm --prefix "$TYPESCRIPT_SDK" install
|
npm --prefix "$TYPESCRIPT_SDK" install
|
||||||
npm --prefix "$TYPESCRIPT_SDK" run build
|
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
|
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port 3000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user