#!/bin/bash

# Setup Deployment Scripts for Production
# Run this once to make all deployment scripts executable

echo "🔧 Setting up LuckyChit deployment scripts..."
echo ""

# Make scripts executable
echo "📝 Making scripts executable..."
chmod +x deploy-full.sh
chmod +x deploy-backend-only.sh
chmod +x deploy-frontend-only.sh
chmod +x backup-database.sh
chmod +x restore-database.sh
chmod +x setup-deployment-scripts.sh

echo "✅ All scripts are now executable!"
echo ""

echo "📦 Available deployment scripts:"
echo ""
echo "  ./deploy-full.sh              - Deploy backend + frontend"
echo "  ./deploy-backend-only.sh      - Deploy backend only"
echo "  ./deploy-frontend-only.sh     - Deploy frontend only"
echo "  ./backup-database.sh          - Backup database"
echo "  ./restore-database.sh         - Restore database from backup"
echo ""

echo "📚 Documentation:"
echo ""
echo "  QUICK_REFERENCE.md            - Quick command reference"
echo "  DEPLOYMENT_MASTER_GUIDE.md    - Complete deployment guide"
echo "  ACTUAL_PRODUCTION_SETUP.md    - Your current production setup"
echo ""

echo "✅ Setup complete!"
echo ""
echo "💡 Tip: Run './deploy-full.sh' to deploy your next update"

