feat: add option to clear Laravel log in runner script for improved log management
This commit is contained in:
12
runner.sh
12
runner.sh
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user