#!/bin/bash # Show Nginx error logs from production server # Usage: ./nginx-logs.sh [lines] # Default: 50 lines LINES="${1:-50}" echo "📋 Showing last $LINES lines of Nginx error logs from production..." echo "" ssh -i ~/.ssh/production deploy@michaelschiemer.de "docker exec web tail -n $LINES /var/log/nginx/error.log" echo "" echo "✅ Done!"