Replace storage:link with explicit ln -sf to fix broken symlink
Deploy / deploy (push) Successful in 14s

php artisan storage:link was creating a regular file instead of a
symlink, causing 404s for all uploaded images.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 04:36:42 +02:00
1 parent cb7765bbcc
commit 35cacb2e99
1 file changed
+2 -1
+2 -1
View File
@@ -27,7 +27,8 @@ mkdir -p storage/app/public \
storage/framework/cache/data storage/framework/cache/data
echo "==> Storage-Symlink anlegen..." echo "==> Storage-Symlink anlegen..."
php artisan storage:link --force rm -rf public/storage
ln -sf ../storage/app/public public/storage
echo "==> Cache für Produktion bauen..." echo "==> Cache für Produktion bauen..."
php artisan config:cache php artisan config:cache