Laravel sail uses php artisan serve, so I would not recommend it in production. Instead set up custom docker or just regular nginx/apache2 + php on the server
Sep 9, 2022
4
Level 8
Doeas Laravel sail used in production environment ?
Hello,
I configured my project :
- Laravel sail
- Vuejs
- Vuetify
The problem is the response time is more than 5s, and this project is a fresh project (empty).
Question :
- Is it a good practice to use Laravel Sail in production ?
- If no how to disable Laravel sail in production ?
Thanks
Level 102
@GodziLaravel No not at all. I personally use docker locally, but don't use it in production. I use nginx + a locally installed php and mysql on the server
If you dont feel confident setting up a server yourself, I can recommend using either ploi or forge to do so.
1 like
Please or to participate in this conversation.