hostinger-django-demo/setup-auto-deploy.sh
thecyberlearn 61d8656da5 Restore multi-project deployment system
- Restored MULTI_PROJECT_SETUP.md with research-based approach
- Restored deploy-project.sh with GitHub repo name extraction
- Restored webhook-router.py for centralized webhook handling
- Cleaned up confusing documentation files
- Multi-project system supports unlimited Django projects
- Auto-extracts repo names: my-app.git → /var/www/my-app/
- Path-based routing: yourip.com/project1/, yourip.com/project2/
- Follows 2024 Django deployment best practices
2025-08-30 09:24:15 +05:30

27 lines
775 B
Bash
Executable File

#!/bin/bash
# Simple Auto-Deploy Setup Script
# Run this on your VPS to enable GitHub auto-deployment
echo "🚀 Setting up simple auto-deploy webhook..."
echo
# Check if we're on the VPS
if [ ! -d "/var/www/django-app" ]; then
echo "❌ This script should be run on your VPS"
echo "Please run: ssh akvps"
echo "Then: sudo bash setup-auto-deploy.sh"
exit 1
fi
# Run the webhook service setup
echo "📦 Installing webhook service..."
sudo bash /var/www/django-app/deploy/webhook-service.sh
echo
echo "✅ Auto-deploy setup complete!"
echo
echo "Next steps:"
echo "1. Go to: https://github.com/thecyberlearn/hostinger-django-demo/settings/hooks"
echo "2. Click 'Add webhook'"
echo "3. Use the webhook secret shown above"
echo "4. Test by pushing a commit!"