dev.altai / deploy_to_hf.sh
prince1604
Deploy: Add query param support + clean requirements for HF
37260b4
Raw
History Blame Contribute Delete
724 Bytes
#!/bin/bash
# Quick Deploy to Hugging Face
# This script pushes your local changes to HF Space
echo "🚀 Deploying to Hugging Face..."
echo ""
# Stage all changes
git add .
# Commit with timestamp
TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
git commit -m "Deploy: Updated API endpoints - $TIMESTAMP"
# Push to origin (GitHub)
echo "📤 Pushing to GitHub..."
git push origin master
echo ""
echo "✅ Code pushed to GitHub!"
echo ""
echo "🔄 Next Steps:"
echo "1. Go to: https://huggingface.co/spaces/ubuntu593/alt-scraper-api"
echo "2. Your Space should auto-sync from GitHub in 1-2 minutes"
echo "3. Watch the build logs to confirm deployment"
echo ""
echo "⏰ Wait 2-3 minutes, then test your Postman request again!"