tovisbratsburg's avatar

Sail for Production Server?

Can Laravel Sail be used for production, or is its intent just for a local environment? I plan to use Docker for both local and production. I've already built stuff with Docker without using Sail - wondering if there is an advantage to Sail and if it can be used for both?

0 likes
7 replies
bugsysha's avatar

Sail is just first party docker image. If that is useful for you then you can use it on production.

sr57's avatar

Why not. You have the advantage of docker.

One used case I have, a central server (not on sail) and api clients (on sails) , all on Laravel.

My clients did some calculations (with local & central data) and my server is used to manage the clients and store historical data. Using sail for my clients make my task easy to deploy them where I want very quickly, even on a laptop.

sr57's avatar

Right, and php artisans serve relies on https://www.php.net/manual/en/features.commandline.webserver.php

It is not intended to be a full-featured web server. It should not be used on a public network.

I have not pay attention to this before.

That said

-1- It's not a pb in my used case, so it depends to the usage of every one

-2- You can put apache in docker and probably have your work with it (I never did it till now)

alfredo_morales's avatar

In the Laravel documentation it says that Sail is for a development environment, the best option for production environments is to use Laradock.

3 likes
eskiesirius's avatar

im using sail in my prod but im not using php artisan serve.. instead im using octane

Please or to participate in this conversation.