From f91d437782a816b67723dc1cb9e8d48fee1972a9 Mon Sep 17 00:00:00 2001 From: y9938 Date: Sun, 19 Oct 2025 09:12:25 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BC=D0=B0?= =?UTF-8?q?=D1=82=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20storage=20link=20=D0=B2?= =?UTF-8?q?=20docker=20entrypoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 85e4f73..5a16b79 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -30,6 +30,13 @@ if [ -f "artisan" ]; then echo ">> Running seeders..." php artisan db:seed --force || true + + if [ ! -L "public/storage" ] && [ -d "storage/app/public" ]; then + echo ">> Creating storage link..." + php artisan storage:link + else + echo ">> Storage link already exists or storage directory missing" + fi else echo ">> Not a Laravel project" fi