From 2498418b99944811cbf55a0fd5ce22ef8abd8fd4 Mon Sep 17 00:00:00 2001 From: Allan Kong Date: Thu, 28 Aug 2025 13:46:05 -0700 Subject: [PATCH] Show newlines --- .env.example | 1 + Envoy.blade.php | 10 ++++++++++ config/filesystems.php | 1 + .../js/Components/Resources/ResourceDescription.vue | 2 +- resources/js/Pages/ResourceEdits/Create.vue | 2 +- resources/js/Pages/Resources/Form/MandatoryFields.vue | 2 +- 6 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index b67083fa..54ebf2ce 100644 --- a/.env.example +++ b/.env.example @@ -36,6 +36,7 @@ SESSION_DOMAIN=null BROADCAST_CONNECTION=log FILESYSTEM_DISK=local +FILESYSTEM_PUBLIC_DRIVER=local QUEUE_CONNECTION=database CACHE_STORE=database diff --git a/Envoy.blade.php b/Envoy.blade.php index 820c7b8e..b1a9ae3e 100644 --- a/Envoy.blade.php +++ b/Envoy.blade.php @@ -12,6 +12,7 @@ install-dependencies down perform-migration + optimize-cache @if(!$skipFrontend) push-frontend @endif @@ -55,6 +56,15 @@ php artisan migrate --force @endtask +@task('optimize-cache', ['on' => 'server']) + set -e + cd /var/www/ComputerScienceResources.com + php artisan cache:clear + php artisan config:cache + php artisan route:cache + php artisan view:cache +@endtask + {{-- ===== Frontend Tasks ===== --}} @task('build-frontend', ['on' => 'local']) diff --git a/config/filesystems.php b/config/filesystems.php index 20f3583b..94b77593 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -37,6 +37,7 @@ 'throw' => false, ], + // TODO: SWITCH TO JUST PRODUCTION INSTEAD 'public' => env('FILESYSTEM_PUBLIC_DRIVER', 'local') === 's3' ? [ // https://www.renick.io/en/blog/post/s3-storage-for-laravel-how-to-integrate-backblaze-b2-with-flysystem 'driver' => 's3', diff --git a/resources/js/Components/Resources/ResourceDescription.vue b/resources/js/Components/Resources/ResourceDescription.vue index 97811fab..8fd3921b 100644 --- a/resources/js/Components/Resources/ResourceDescription.vue +++ b/resources/js/Components/Resources/ResourceDescription.vue @@ -46,7 +46,7 @@ const props = defineProps({ -

+

{{ props.resource.description }}

diff --git a/resources/js/Pages/ResourceEdits/Create.vue b/resources/js/Pages/ResourceEdits/Create.vue index bcfb05fb..d4efa3f1 100644 --- a/resources/js/Pages/ResourceEdits/Create.vue +++ b/resources/js/Pages/ResourceEdits/Create.vue @@ -326,7 +326,7 @@ const submit = async () => { ) " class="mt-1 block w-full" - :rows="6" + :rows="8" />