From b613cdb7963ed6cc0ed7190d01817ab49e27aac4 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 29 Jan 2026 09:45:12 +0800 Subject: [PATCH] =?UTF-8?q?chore(docker):=20=E5=95=9F=E5=8B=95=E6=99=82?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E6=AA=A2=E6=9F=A5=E4=B8=A6=E5=BB=BA=E7=AB=8B?= =?UTF-8?q?=20storage=20=E8=BB=9F=E9=80=A3=E7=B5=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/8.4/start-container | 5 +++++ docker/8.5/start-container | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docker/8.4/start-container b/docker/8.4/start-container index 40c55df..dfe9799 100644 --- a/docker/8.4/start-container +++ b/docker/8.4/start-container @@ -15,6 +15,11 @@ fi chmod -R ugo+rw /.composer +# 確保 storage 軟連結存在 +if [ ! -L /var/www/html/public/storage ]; then + php /var/www/html/artisan storage:link +fi + if [ $# -gt 0 ]; then if [ "$SUPERVISOR_PHP_USER" = "root" ]; then exec "$@" diff --git a/docker/8.5/start-container b/docker/8.5/start-container index 40c55df..dfe9799 100644 --- a/docker/8.5/start-container +++ b/docker/8.5/start-container @@ -15,6 +15,11 @@ fi chmod -R ugo+rw /.composer +# 確保 storage 軟連結存在 +if [ ! -L /var/www/html/public/storage ]; then + php /var/www/html/artisan storage:link +fi + if [ $# -gt 0 ]; then if [ "$SUPERVISOR_PHP_USER" = "root" ]; then exec "$@"