Fix storage link on docker

This commit is contained in:
mchev
2026-04-02 11:56:16 +02:00
parent 375cfc6b18
commit de4ba6bba0
3 changed files with 15 additions and 0 deletions

View File

@@ -37,6 +37,15 @@ return [
'report' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
's3' => [
'driver' => 's3',
'key' => env('AWS_KEY'),

View File

@@ -36,6 +36,11 @@ fi
echo "**** Setting up artisan permissions ****"
chmod +x artisan
if [ ! -L /var/www/html/public/storage ]; then
echo "**** Creating storage symlink (public/storage) ****"
./artisan storage:link --force -n || true
fi
if ! grep -q "APP_KEY" /var/www/html/.env
then
echo "**** Creating empty APP_KEY variable ****"

View File

@@ -0,0 +1 @@
fake-png-content