8 lines
371 B
Bash
8 lines
371 B
Bash
#!/bin/bash
|
|
# Restart danable web dev server (pattern lives here, never in caller cmdline).
|
|
pkill -f 'vite --host 0\.0\.0\.0 --port 5173' 2>/dev/null
|
|
sleep 2
|
|
cd /home/hailt/danagble/anotation-frontend
|
|
setsid -f ./node_modules/.bin/vite --host 0.0.0.0 --port 5173 </dev/null >>/tmp/danable-web.log 2>&1
|
|
sleep 5
|
|
curl -s -o /dev/null -w "web=%{http_code}\n" localhost:5173/
|