mesela yani

This commit is contained in:
salvacybersec
2025-11-11 14:05:20 +03:00
parent 9f53a34cfb
commit 7582813f20
3 changed files with 47 additions and 3 deletions

View File

@@ -42,6 +42,14 @@ else
fi
fi
# Ensure frontend build exists before starting server
FRONTEND_INDEX="src/public/dist/index.html"
if [ ! -f "$FRONTEND_INDEX" ]; then
echo "❌ Frontend build not found at $FRONTEND_INDEX"
echo " Please run 'npm run build' in the frontend (or rebuild the Docker image) so the dist assets are available."
exit 1
fi
# Start the application
echo "✨ Starting server..."
exec "$@"