Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions swathi_beknal_site
Original file line number Diff line number Diff line change
@@ -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 '<meta name="viewport" content="width=device-width, initial-scale=1.0">' >> "$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."