#!/bin/bash
PORT=3015
for i in {1..12}; do
  curl -sf -o /dev/null http://localhost:$PORT/ && exit 0
  echo "Attempt $i: app not responding yet, waiting..."
  sleep 5
done
echo "App failed to respond after 60 seconds"
exit 1
