Created
July 2, 2019 20:56
-
-
Save omaryoussef/c99eb5fafb7333a657286eeaf1b8e2df to your computer and use it in GitHub Desktop.
Tmux Script to tail all Laravel logs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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