Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GodziLaravel's avatar

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

0 likes
4 replies
Sinnbeck's avatar

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

2 likes
GodziLaravel's avatar

@Sinnbeck

Thanks for your answer,

The question I face now is : is it necessary to use docker in production, even if all developers are using it on there locals ?

Sinnbeck's avatar
Sinnbeck
Best Answer
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.