Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7rnC7jppGGdHGESvy
11 lines
527 B
Bash
Executable File
11 lines
527 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Needs Node 20+ and a one-time `npx playwright install chromium`. Starts a FRESH jar (data is mutated).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
PORT=${PORT:-18083}
|
|
java -Xmx256m -jar target/thymeleaf-htmx-1.0.0.jar --server.port=$PORT > /tmp/thymeleaf-htmx-browser.log 2>&1 &
|
|
PID=$!
|
|
trap 'kill $PID 2>/dev/null || true' EXIT
|
|
for i in $(seq 1 60); do curl -s -o /dev/null localhost:$PORT/contacts && break; sleep 1; done
|
|
(cd browser-check && npm install --silent && node check.mjs http://localhost:$PORT)
|