Files
nocodb/scripts/playwright/startPlayWrightServer.sh
2022-11-03 16:24:17 +05:30

11 lines
360 B
Bash
Executable File

# Run server if its not running
if ! curl --output /dev/null --silent --head --fail http://localhost:31000
then
echo "Starting PlayWright Server"
PWDEBUG=console npx playwright run-server --reuse-browser --port 31000 &
# Wait for server to start
while ! curl --output /dev/null --silent --head --fail http://localhost:31000; do
sleep 0.2
done
fi