mirror of
https://github.com/immich-app/immich.git
synced 2026-05-28 10:32:31 -04:00
1a837a28ac
Co-authored-by: Spencer Stingley <accounts@blankcanvas.io>
32 lines
866 B
Bash
Executable File
32 lines
866 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck source=common.sh
|
|
# shellcheck disable=SC1091
|
|
source /immich-devcontainer/container-common.sh
|
|
|
|
export CI=1
|
|
log "Preparing Immich Web Frontend"
|
|
log ""
|
|
run_cmd pnpm --filter @immich/sdk install
|
|
run_cmd pnpm --filter @immich/sdk build
|
|
run_cmd pnpm --filter @immich/plugin-sdk install
|
|
run_cmd pnpm --filter @immich/plugin-sdk build
|
|
run_cmd pnpm --filter immich-web install
|
|
|
|
log "Starting Immich Web Frontend"
|
|
log ""
|
|
cd "${IMMICH_WORKSPACE}/web" || (
|
|
log "Immich Workspace not found"
|
|
exit 1
|
|
)
|
|
|
|
until curl --output /dev/null --silent --head --fail "http://127.0.0.1:${IMMICH_PORT}/api/server/config"; do
|
|
log "Waiting for api server..."
|
|
sleep 1
|
|
done
|
|
|
|
while true; do
|
|
run_cmd pnpm --filter immich-web exec vite dev --host 0.0.0.0 --port "${DEV_PORT}"
|
|
log "Web crashed with exit code $?. Respawning in 3s ..."
|
|
sleep 3
|
|
done
|