From cb7765bbccf25a5d5f56856da733f78c5a930961 Mon Sep 17 00:00:00 2001 From: Malek Tellissi Date: Sat, 12 Sep 2026 04:33:44 +0200 Subject: [PATCH] Ensure storage directories exist before storage:link in entrypoint The Docker volume replaces storage/app/ with an empty volume on first run, so storage/app/public/ must be created explicitly before the storage:link symlink is registered. Co-Authored-By: Claude Sonnet 4.6 --- docker/entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 71da188..fa23f7b 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -20,8 +20,14 @@ done echo "==> Migrationen ausführen..." php artisan migrate --force --no-interaction +echo "==> Storage-Verzeichnisse anlegen..." +mkdir -p storage/app/public \ + storage/framework/sessions \ + storage/framework/views \ + storage/framework/cache/data + echo "==> Storage-Symlink anlegen..." -php artisan storage:link --force 2>/dev/null || true +php artisan storage:link --force echo "==> Cache für Produktion bauen..." php artisan config:cache