chore: snapshot before HartOMat rebrand
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo "Starting Schaeffler Automat..."
|
||||
docker compose up -d
|
||||
|
||||
echo ""
|
||||
echo "Waiting for health checks..."
|
||||
sleep 3
|
||||
|
||||
# Check services
|
||||
BACKEND=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:8888/docs 2>/dev/null || echo "000")
|
||||
FRONTEND=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:5173 2>/dev/null || echo "000")
|
||||
|
||||
echo ""
|
||||
docker compose ps --format "table {{.Name}}\t{{.Status}}\t{{.Ports}}"
|
||||
echo ""
|
||||
|
||||
if [ "$BACKEND" = "200" ] && [ "$FRONTEND" = "200" ]; then
|
||||
echo "All services up."
|
||||
echo " Backend: http://localhost:8888/docs"
|
||||
echo " Frontend: http://localhost:5173"
|
||||
else
|
||||
echo "WARNING: Some services may not be ready yet."
|
||||
[ "$BACKEND" != "200" ] && echo " Backend returned $BACKEND"
|
||||
[ "$FRONTEND" != "200" ] && echo " Frontend returned $FRONTEND"
|
||||
echo " Run 'docker compose logs -f' to investigate."
|
||||
fi
|
||||
Reference in New Issue
Block a user