fix: автоматическое создание storage link в docker entrypoint

This commit is contained in:
2025-10-19 09:12:25 +03:00
parent c6539102eb
commit f91d437782

View File

@@ -30,6 +30,13 @@ if [ -f "artisan" ]; then
echo ">> Running seeders..." echo ">> Running seeders..."
php artisan db:seed --force || true 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 else
echo ">> Not a Laravel project" echo ">> Not a Laravel project"
fi fi