#!/bin/bash # Start backend cd /app/backend python main.py & # Wait for backend to be ready echo "Waiting for backend to start..." for i in {1..30}; do if curl -s http://localhost:8000/api/queue > /dev/null 2>&1; then echo "Backend is ready." break fi echo "Waiting... ($i)" sleep 2 done # Start frontend cd /app/frontend exec node server.js