File size: 375 Bytes
10b9eb2 b388e7f 10b9eb2 b388e7f 10b9eb2 b388e7f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/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 |