flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Add Filament Cache Command through Laravel Scanner's Dockerfile Template

Open KTanAug21 opened this issue 1 year ago • 1 comments

Change Summary

What and Why: What: Run Filament Cache command when Filament is installed for a Laravel application

Why: Thanks to community post, it was discovered that Laravel apps with Filament installed get really low requests per second( I tested, and got 5 requests per second ). This can be improved by running Filament's cache commands.

How: Revise Laravel's Dockerfile template to run the Filament cache commands when "filament/filament" is detected in the composer.json file

Related to: Community post

Documentation

  • [ ] Fresh Produce
  • [ ] In superfly/docs, or asked for help from docs team
  • [ ] n/a

KTanAug21 avatar Mar 03 '24 23:03 KTanAug21

Looks good. The check that's failing is because in Line 47 of your commit, there was some whitespace. The check cleaned this up before the pull request was made so you don't need to make any changes.

Hey @Johannes-Werbrouck ! Thanks for checking in! Noted on the above

KTanAug21 avatar Mar 11 '24 20:03 KTanAug21