A production-grade Bash script to automatically deploy Laravel applications on AWS Ubuntu servers using GitHub webhooks. This script handles secure SSH authentication, proper permission separation, and comprehensive error handling.
- GitHub Webhook Integration - Automatic deployments triggered by Git pushes
- Secure SSH Authentication - No tokens or passwords required
- Permission Management - Proper separation between repository owner (
ubuntu) and web server user (www-data) - Git Safe Directory Handling - Automatically configures Git to work with different user ownership