#!/bin/bash
# Deploy media fix to production server

echo "🚀 Deploying media fix to production..."

# Upload the fix script to production
echo "📤 Uploading production_media_fix.py..."

# Run the fix script on production
echo "🔧 Running media fix on production..."
python3 production_media_fix.py

# Restart the application
echo "🔄 Restarting application..."
touch tmp/restart.txt

echo "✅ Media fix deployment completed!"
echo "The 404 errors should now be resolved."