From f1a2fad3657bfa7ac8fec69b42a415cb94f5c96c Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Sun, 24 Mar 2024 14:15:50 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=82=A7=E3=83=AB=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- clear.sh | 28 ++++++++++++++++++++++++++++ デバッグ手順_debug.txt | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 clear.sh create mode 100644 デバッグ手順_debug.txt diff --git a/clear.sh b/clear.sh new file mode 100644 index 0000000..ef1a98b --- /dev/null +++ b/clear.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +cd $(dirname $0) + +SAIL="" +COMMANDS=() + +if [ $# -eq 0 ]; then + SAIL="" + COMMANDS+=("composer install --optimize-autoloader --no-dev") +elif [ $# -eq 1 ] && [ $1 == "sail" ]; then + SAIL="./sail" + NO_DEV="--no-dev" +else + echo "引数不正" + exit 1 +fi + +COMMANDS+=("${SAIL} php artisan config:clear") +COMMANDS+=("${SAIL} php artisan route:clear") +COMMANDS+=("${SAIL} php artisan view:clear") +COMMANDS+=("${SAIL} php artisan event:clear") +COMMANDS+=("${SAIL} php artisan queue:restart") + +for COMMAND in "${COMMANDS[@]}"; do + echo ${COMMAND} + ${COMMAND} +done \ No newline at end of file diff --git a/デバッグ手順_debug.txt b/デバッグ手順_debug.txt new file mode 100644 index 0000000..250af12 --- /dev/null +++ b/デバッグ手順_debug.txt @@ -0,0 +1,3 @@ +http://localhost/debug?XDEBUG_SESSION_START=debug + +へアクセス \ No newline at end of file