Hi, did you find a solution to this problem ? I seem to be in the same situation.
--- edit ---
I had this problem because my meilisearch server and my app server where in the same region, but not on the same private network on Digital Ocean.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have two servers set up through Forge, one is the main application and the other is a dedicated Meilisearch server. Both are located in the same region, they are both in each other's server network.
I have the Meilisearch credentials in my .env file and things seem to be set up properly but I'm getting a 504 time-out when I visit the main page of my application (which has a search bar). I also get a timeout error when I try to run php artisan scout:import "MyModel" on my searchable model (ssh'ed into the server, of course).
I'm not sure how else to troubleshoot this and I'm not finding a lot of tutorials for Meilisearch/Forge. Any help is appreciated.
Please or to participate in this conversation.