diff --git a/config/filesystems.php b/config/filesystems.php index 169b37bd..34d9b0b0 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -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'), diff --git a/docker/production/entrypoint.d/00-setup.sh b/docker/production/entrypoint.d/00-setup.sh index 16096cfa..1a23fcf2 100644 --- a/docker/production/entrypoint.d/00-setup.sh +++ b/docker/production/entrypoint.d/00-setup.sh @@ -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 ****" diff --git a/storage/framework/testing/disks/public/121/logo.png b/storage/framework/testing/disks/public/121/logo.png new file mode 100644 index 00000000..4fd3ed17 --- /dev/null +++ b/storage/framework/testing/disks/public/121/logo.png @@ -0,0 +1 @@ +fake-png-content \ No newline at end of file