Spaces:
Sleeping
Sleeping
File size: 1,092 Bytes
f59a149 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/bin/bash
# scripts/check_build.sh
# Final deployment check for ShockMap
echo "π Starting ShockMap Deployment Audit..."
# 1. Backend check
echo "π Auditing Backend..."
cd backend
if python -c "from app.main import app; print('β
Backend imports successful')" ; then
echo " - Backend imports: OK"
else
echo " β Backend imports: FAILED"
exit 1
fi
cd ..
# 2. Frontend check
echo "βοΈ Auditing Frontend..."
cd frontend
if npm run build ; then
echo " - Frontend build: OK"
else
echo " β Frontend build: FAILED"
exit 1
fi
cd ..
# 3. Deployment files check
echo "π Auditing Deployment Configs..."
if [ -f "render.yaml" ] && [ -f "netlify.toml" ] && [ -f "ingestion/Dockerfile" ]; then
echo " - Deployment manifests: OK"
else
echo " β Deployment manifests: MISSING"
exit 1
fi
echo "β
SHOCKMAP READY FOR DEPLOYMENT"
echo "--------------------------------"
echo "Backend: Render (using render.yaml)"
echo "Frontend: Netlify (set VITE_BACKEND_URL to your Render URL)"
echo "Worker: Shock Detector (using ingestion/Dockerfile)"
|