Fix Laravel storage:link using Launcher

2021-08-21

Tags: Erro ao fazer upload de imagem no Laravel e tentar exibir.

Somehow, the php artisan storage:link command doesn’t work as expected using the Launcher service, and files stored in local public disk are not publicly accessed.

To fix it, SSH into your site container and manually create the symbolic link.

ln -s ../storage/app/public/ public/storage

If public/storage already exists, you mean need to remove it first.

rm public/storage

Update:

It seems this is a known issue, and it has been addressed the `php artisan storage:link` command has been removed from the Deploy script (entrypoint) config file, and replaced with ln -s ../storage/app/public/ public/storage.

Fonte: https://oliverservin.com/launcher-storage/

Please follow and like us:
Pin Share

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

RSS
Follow by Email
WP Radio
WP Radio
OFFLINE LIVE