feat: complete translator stack

This commit is contained in:
truetype committed 2026-01-26 18:15:46 +01:00
commit 6fe7c5121b
9946 files changed
+1747495

No files matched your search

Executable
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -euo pipefail
if [ "$#" -ne 0 ]; then
echo "Usage: ./start-stack.sh"
exit 1
fi
export COMPOSE_HTTP_TIMEOUT=200
echo "Avvio backend..."
docker compose up -d backend
echo "Verifica endpoint backend..."
for i in {1..20}; do
if curl -sf http://localhost:8000/health >/dev/null; then
echo "Backend pronto"
break
fi
echo "Backend non pronto, riprovo in 2s..."
sleep 2
done
if ! curl -sf http://localhost:8000/health >/dev/null; then
echo "Warning: backend sembra ancora non pronto"
fi
echo "Avvio frontend..."
docker compose up -d frontend
echo "Stack avviato. Frontend: http://localhost:5173 | Backend: http://localhost:8000"