Fix storage link on docker
This commit is contained in:
@@ -37,6 +37,15 @@ return [
|
|||||||
'report' => false,
|
'report' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'public' => [
|
||||||
|
'driver' => 'local',
|
||||||
|
'root' => storage_path('app/public'),
|
||||||
|
'url' => env('APP_URL').'/storage',
|
||||||
|
'visibility' => 'public',
|
||||||
|
'throw' => false,
|
||||||
|
'report' => false,
|
||||||
|
],
|
||||||
|
|
||||||
's3' => [
|
's3' => [
|
||||||
'driver' => 's3',
|
'driver' => 's3',
|
||||||
'key' => env('AWS_KEY'),
|
'key' => env('AWS_KEY'),
|
||||||
|
|||||||
@@ -36,6 +36,11 @@ fi
|
|||||||
echo "**** Setting up artisan permissions ****"
|
echo "**** Setting up artisan permissions ****"
|
||||||
chmod +x artisan
|
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
|
if ! grep -q "APP_KEY" /var/www/html/.env
|
||||||
then
|
then
|
||||||
echo "**** Creating empty APP_KEY variable ****"
|
echo "**** Creating empty APP_KEY variable ****"
|
||||||
|
|||||||
1
storage/framework/testing/disks/public/121/logo.png
Normal file
1
storage/framework/testing/disks/public/121/logo.png
Normal file
@@ -0,0 +1 @@
|
|||||||
|
fake-png-content
|
||||||
Reference in New Issue
Block a user