mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 05:31:24 +00:00
Fix storage link on docker
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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 ****"
|
||||
|
||||
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