fix: automatically create storage link in docker entrypoint
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user