Toolbar slow on Raspberry Pi 1B and 3B (Docker/Alpine) |
Hi,
I'm migrating an old CI3 app to CI4. This new app is hosted on Docker with Alpine 3.17 and php8.1. On my laptop (with standard processor), everything runs fine. But when I deploy my code to my Raspberry 3B (I first tried on Raspberry 1B where CI3 runs smoothly), everything started to get slow, with timeout. After further investigation, I noticed that my code starts running fine, with good response time, as soon as I disable the debug toolbar (keeping development env and just disabling it in app/Config/Filters.php). Do you have any idea where the problem can come from ? Here is my dockerfile (maybe I miised to install a php extension ?). Code: FROM alpine:3.17.3 Thanks for your help. Fred
Did you do Initial Configuration?
See https://codeigniter.com/user_guide/insta...figuration (04-25-2023, 05:33 PM)kenjis Wrote: Did you do Initial Configuration? Yes, baseUrl is set. I tried setting it in .env, app/Config/App.php and even set it dynamically with constant in app/Config/Constants.php, but this doesn't have any effect. i don't know why this is important specifically for the toolbar as the code seems to be embedded in the page itself (which takes 16s to load on RPI3 vs 200ms when disabled).
Just to confirm, that property is baseURL, not baseUrl.
But you did set in app/Config/App.php. A setting mistake is not likely to happen. Do you see the debug toolbar? (04-26-2023, 12:11 AM)kenjis Wrote: Just to confirm, that property is baseURL, not baseUrl. I confirm it is correctly set (and this is confirmed by the fact that my links created with base_url() change accordingly) . The debug toolbar is correctly displayed as well, but with very long time, as mentionned. |
Welcome Guest, Not a member yet? Register Sign In |