feat: add option to clear Laravel log in runner script for improved log management

This commit is contained in:
2025-12-04 08:18:29 -05:00
parent c437519bde
commit 4b0f3e0621

View File

@@ -21,7 +21,8 @@ $divider
[2] Run gitpush.sh
[3] Run laravallog.sh
[4] Run laravalcache.sh
[5] Exit
[5] Clear Laravel log
[6] Exit
$divider
Select an option by pressing the number key.
EOF
@@ -47,6 +48,15 @@ EOF
"$git_cache"
;;
5)
LOG_FILE="${SCRIPT_DIR}/storage/logs/laravel.log"
if [ -f "$LOG_FILE" ]; then
> "$LOG_FILE"
echo "Log file cleared successfully: $LOG_FILE"
else
echo "Log file not found: $LOG_FILE"
fi
;;
6)
echo "Goodbye!"
exit 0
;;