Aethero_github / deploy_dashboard.sh
xvadur's picture
πŸ•·οΈ Update deployment script for Spider-Man theme
15dcb7e
#!/bin/bash
# πŸ•·οΈ AetheroOS Spider-Man Dashboard Deploy Script
# Prepares Spider-Man themed dashboard for Vercel deployment and pushes to GitHub
echo "πŸ•·οΈ Preparing AetheroOS Spider-Man Dashboard for Vercel deployment..."
# 1. Ensure public directory exists
mkdir -p dashboard/public
# 2. Copy any new HTML/CSS/JS files to public (if they exist in dashboard root)
mv dashboard/*.html dashboard/*.css dashboard/*.js dashboard/public/ 2>/dev/null || true
# 3. Verify vercel.json configuration
if [ ! -f "dashboard/vercel.json" ]; then
echo "πŸ“ Creating vercel.json..."
cat > dashboard/vercel.json <<EOF
{
"outputDirectory": "public",
"buildCommand": "npm run build",
"framework": "other"
}
EOF
fi
# 4. Verify package.json configuration
if [ ! -f "dashboard/package.json" ]; then
echo "πŸ“ Creating package.json..."
cat > dashboard/package.json <<EOF
{
"name": "aethero-dashboard",
"version": "1.0.0",
"description": "AetheroOS Introspective Dashboard",
"scripts": {
"dev": "python -m http.server 3000",
"build": "echo 'Static files ready for deployment'",
"start": "python -m http.server 8080"
},
"author": "AetheroOS",
"license": "MIT"
}
EOF
fi
# 5. Git operations
echo "πŸ“¦ Committing and pushing changes..."
git add .
git commit -m "Dashboard update: $(date '+%Y-%m-%d %H:%M:%S')"
git push origin main
echo "βœ… Dashboard deployed! Check https://vercel.com/xvadurs-projects/aethero-github for build status."
echo "🌐 Your dashboard will be available at the Vercel URL once deployment completes."