Files
2025-12-26 13:38:04 +01:00

34 lines
935 B
Bash
Executable File

#!/usr/bin/env bash
echo "Starting in DEV mode with live reload..."
# Retry loop for robust build
for i in {1..5}; do
if podman compose -f podman-compose.dev.yml build; then
echo "Build successful on attempt $i"
break
else
if [ $i -eq 5 ]; then
echo "Build failed after 5 attempts. Please check your internet connection and DNS settings."
exit 1
fi
echo "Build failed. Retrying in 10 seconds... (Attempt $i/5)"
sleep 10
fi
done
# Ensure cleanup of orphans
podman compose -f podman-compose.dev.yml down -v --remove-orphans
# Start up
podman compose -f podman-compose.dev.yml up -d
echo "------------------------------------------------"
echo "Frontend: http://localhost:3000"
echo "Canva App: http://localhost:8081"
echo "Backend: http://localhost:4000"
echo "------------------------------------------------"
echo "Tailing logs..."
podman compose -f podman-compose.dev.yml logs -f