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

artka54's avatar

When deploying/updating Laravel on production - maintenance mode - how to deal with it

How do you deal with live traffic when you have to deploy or update your application on VPS and you have to go into maintenance mode. How do you deliver this 'maintenance mode'? Do you edit your nginx.conf to point to e.g maintenance.html or maybe you use some other techniques.

Thank you.

0 likes
1 reply
beetuco's avatar
beetuco
Best Answer
Level 9

2 ways.

first. php artisan down then php artisan up after you have finished.

Second and best: Envoyer.

If live traffic and uptime is a must, then use Envoyer to reduce downtime.

Through the use of aliasing directories and other smarts, the site will essentially 'switch over' to your updated codebase.

https://envoyer.io

1 like

Please or to participate in this conversation.