mirror of
https://github.com/immich-app/immich.git
synced 2025-06-03 21:54:21 -04:00
21 lines
512 B
Bash
Executable File
21 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
# shellcheck source=common.sh
|
|
source /immich-devcontainer/common.sh
|
|
|
|
until curl --output /dev/null --silent --head --fail "http://127.0.0.1:${IMMICH_PORT}/api/server/config"; do
|
|
echo 'waiting for api server...'
|
|
sleep 1
|
|
done
|
|
|
|
echo "Starting web"
|
|
cd "${IMMICH_WORKSPACE}/web" || (
|
|
echo workspace not found
|
|
exit 1
|
|
)
|
|
|
|
while true; do
|
|
node ./node_modules/.bin/vite dev --host 0.0.0.0 --port "${DEV_PORT}"
|
|
echo "Web crashed with exit code $?. Respawning in 3s ..."
|
|
sleep 3
|
|
done
|