bazarr/dev-setup/frontend-entrypoint.sh
2025-08-09 09:00:19 -04:00

18 lines
497 B
Bash

#!/bin/sh
echo "Waiting for backend to be ready..."
# Wait for backend to be reachable
until nc -z bazarr-backend 6767 2>/dev/null; do
echo "Backend not ready yet, waiting..."
sleep 5
done
echo "Backend is ready!"
# In development mode, we don't need to wait for API key since authentication might be disabled
echo "Starting frontend in development mode..."
# Start the frontend with --no-open to prevent browser auto-open attempts in container
exec npm run start -- --host --no-open