diff --git a/swathi_beknal_site b/swathi_beknal_site new file mode 100644 index 0000000..1caa5e3 --- /dev/null +++ b/swathi_beknal_site @@ -0,0 +1,45 @@ +#!/bin/bash +# ================================================ +# Deployment script for swathi_beknal_site +# Push to GitHub, deploy to Vercel, check responsiveness +# ================================================ + +# --- CONFIGURE THESE --- +GITHUB_USERNAME="YOUR_GITHUB_USERNAME" +REPO_NAME="swathi_beknal_site" +LOCAL_PATH="/path/to/swathi_beknal_site" # Change to your local folder +VERCEL_PROJECT_NAME="swathi-beknal-site" + +# --- STEP 1: Prepare mobile responsiveness --- +echo "Ensuring mobile responsiveness..." +if ! grep -q 'viewport' "$LOCAL_PATH/index.html"; then + echo '' >> "$LOCAL_PATH/index.html" + echo "Added viewport meta tag for mobile responsiveness." +else + echo "Viewport meta tag already exists." +fi + +# --- STEP 2: Initialize Git and push to GitHub --- +cd "$LOCAL_PATH" || exit + +if [ ! -d ".git" ]; then + echo "Initializing Git repository..." + git init +fi + +git add . +git commit -m "Deploy swathi_beknal_site" +git branch -M main +git remote add origin "https://github.com/$GITHUB_USERNAME/$REPO_NAME.git" 2>/dev/null +git push -u origin main --force + +echo "Pushed site to GitHub: https://github.com/$GITHUB_USERNAME/$REPO_NAME" + +# --- STEP 3: Deploy to Vercel --- +echo "Deploying to Vercel..." +vercel --prod --name "$VERCEL_PROJECT_NAME" --confirm + +# --- STEP 4: Success message --- +echo "Deployment complete!" +echo "Check your live site here: https://$VERCEL_PROJECT_NAME.vercel.app" +echo "Test on mobile devices and different networks to confirm global access."