Skip to content

Commit

Permalink
CI: give more time for startup and produce more output from servers
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Dec 10, 2024
1 parent 5d9ed76 commit be5754b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mkdocs/docs/playground/run-cypress-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ wait_for_service() {
while ! nc -z localhost "$PORT"; do
sleep 0.1s
i=$((i + 1))
if [[ "$i" -gt 100 ]]; then
echo "Timed out after waiting 10s"
if [[ "$i" -gt 300 ]]; then
echo "Timed out after waiting 30s for $SERVICE at $PORT"
exit 1
fi
done
Expand All @@ -31,9 +31,9 @@ cleanup() {

# Starts frontend and backend and ensures they are stopped when the script exits
trap cleanup EXIT
"$SCRIPT_DIR/../../serve-no-livereload.sh" >/dev/null &
"$SCRIPT_DIR/../../serve-no-livereload.sh" &
PID_MKDOCS=$!
docker run --rm -p 8080:8080 ghcr.io/epsilonlabs/playground-backend:standalone-server >/dev/null &
docker run --rm -p 8080:8080 ghcr.io/epsilonlabs/playground-backend:standalone-server &
PID_DOCKER=$!

wait_for_service Frontend 8000
Expand Down

0 comments on commit be5754b

Please sign in to comment.