Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ SESSION_DOMAIN=null

BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
FILESYSTEM_PUBLIC_DRIVER=local
QUEUE_CONNECTION=database

CACHE_STORE=database
Expand Down
10 changes: 10 additions & 0 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
install-dependencies
down
perform-migration
optimize-cache
@if(!$skipFrontend)
push-frontend
@endif
Expand Down Expand Up @@ -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'])
Expand Down
1 change: 1 addition & 0 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'throw' => false,
],

// TODO: SWITCH TO JUST PRODUCTION INSTEAD
Copy link

Copilot AI Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TODO comment is vague and doesn't provide sufficient context. Consider adding more specific details about what should be switched to production and when this change should be made.

Suggested change
// TODO: SWITCH TO JUST PRODUCTION INSTEAD
// In production, ensure 'public' disk uses S3 by setting FILESYSTEM_PUBLIC_DRIVER to 's3' in the environment.

Copilot uses AI. Check for mistakes.
'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',
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Components/Resources/ResourceDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const props = defineProps({
</div>
</div>

<p class="text-gray-700 mb-6 text-base leading-relaxed">
<p class="text-gray-700 mb-6 text-base leading-relaxed whitespace-pre-line">
{{ props.resource.description }}
</p>

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/ResourceEdits/Create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ const submit = async () => {
)
"
class="mt-1 block w-full"
:rows="6"
:rows="8"
/>
<InputError
class="mt-2"
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Resources/Form/MandatoryFields.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ watch(
v-model="props.formData.description"
placeholder="Describe the resource..."
class="mt-1 w-full border border-gray-300 rounded-md shadow-sm focus:border-blue-500 focus:ring focus:ring-blue-200"
rows="3"
rows="8"
/>
<PrimeVueFormError
v-if="errors.description"
Expand Down