Laravel Config & Route Cache #187
-
Previously I was using my own docker images and I was having different entrypoints based on what I needed to use the container for, queues, task, webserver
The horizon entrypoint was for example which was running the config:cache and route:cache first
I decided to switch to your images and use fpm-ngxin. How can I implement the equivalent ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Thanks for stopping by @moisish! I have a Laravel automations script in that image (source located here: https://github.com/serversideup/docker-php/blob/main/src/fpm/etc/s6-overlay/scripts/laravel-automations) I used to have I removed them because it was a core Laravel bug, but I am not sure if it has been resolved or not. I assume it has with how many enhancements have been made since then 😅 To extend the imageI have some docs here on how to customize things: https://serversideup.net/open-source/docker-php/docs/guide/customizing-the-image You'll likely want to add your own script that follows my Laravel automations script. Be sure to NOT use supervisor and follow the S6 Overlay methods to execute your script. See how I do this under the fpm folder (which fpm-nginx builds off that base image). Hope this helps! |
Beta Was this translation helpful? Give feedback.
Thanks for stopping by @moisish!
I have a Laravel automations script in that image (source located here: https://github.com/serversideup/docker-php/blob/main/src/fpm/etc/s6-overlay/scripts/laravel-automations)
I used to have
artisan config:cache
androute:cache
, but it created strange behaviors with APIs in an older version of Laravel (pretty sure it was like 5.x).I removed them because it was a core Laravel bug, but I am not sure if it has been resolved or not. I assume it has with how many enhancements have been made since then 😅
To extend the image
I have some docs here on how to customize things: https://serversideup.net/open-source/docker-php/docs/guide/customizing-the-image
You'll …