Skip to content

Instantly share code, notes, and snippets.

@omaryoussef
Created July 2, 2019 20:56
Show Gist options
  • Save omaryoussef/c99eb5fafb7333a657286eeaf1b8e2df to your computer and use it in GitHub Desktop.
Save omaryoussef/c99eb5fafb7333a657286eeaf1b8e2df to your computer and use it in GitHub Desktop.
Tmux Script to tail all Laravel logs
#!/bin/bash
TMUX_TAIL=$(which "tmux-tail-f.sh") || { echo "This script requires tmux"; exit 1; }
LARAVEL_DATE=`date +%Y-%m-%d`
sudo $TMUX_TAIL -t "./storage/logs/laravel-worker.log" "./storage/logs/laravel-${LARAVEL_DATE}.log" "/var/log/nginx/error.log" "/var/log/nginx/access.log"
#!/bin/bash
TMUX_TAIL=$(which "tmux-tail-f.sh") || { echo "This script requires tmux"; exit 1; }
LARAVEL_DATE=`date +%Y-%m-%d`
$TMUX_TAIL -t "./storage/logs/laravel-worker.log" "./storage/logs/laravel-${LARAVEL_DATE}.log"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment