fixed issues from removing other frontend
This commit is contained in:
8
open
8
open
@ -6,6 +6,7 @@ PROJECT_DIR="$PWD"
|
||||
export BACKEND_PORT="${BACKEND_PORT:-8000}"
|
||||
export VITE_BACKEND_PORT="${VITE_BACKEND_PORT:-$BACKEND_PORT}"
|
||||
BACKEND_URL="http://127.0.0.1:${BACKEND_PORT}/health"
|
||||
FRONTEND_URL="http://127.0.0.1:5173"
|
||||
|
||||
# Check if backend is already running
|
||||
if curl -sf "$BACKEND_URL" > /dev/null 2>&1; then
|
||||
@ -48,4 +49,11 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
# Check if frontend is already running
|
||||
if curl -sf "$FRONTEND_URL" > /dev/null 2>&1; then
|
||||
echo "Frontend already running on port 5173."
|
||||
else
|
||||
echo "Frontend not running — Tauri will start it automatically."
|
||||
fi
|
||||
|
||||
npx tauri dev
|
||||
|
||||
Reference in New Issue
Block a user