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
|
[2] Run gitpush.sh
|
||||||
[3] Run laravallog.sh
|
[3] Run laravallog.sh
|
||||||
[4] Run laravalcache.sh
|
[4] Run laravalcache.sh
|
||||||
[5] Exit
|
[5] Clear Laravel log
|
||||||
|
[6] Exit
|
||||||
$divider
|
$divider
|
||||||
Select an option by pressing the number key.
|
Select an option by pressing the number key.
|
||||||
EOF
|
EOF
|
||||||
@@ -47,6 +48,15 @@ EOF
|
|||||||
"$git_cache"
|
"$git_cache"
|
||||||
;;
|
;;
|
||||||
5)
|
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!"
|
echo "Goodbye!"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user