Laravel Deployment Script: 4 Steps to Add Changes on Server

Deploying changes of your Laravel project to the server is not a simple process. I would separate that into 4 separate phases: code changes, dependencies, DB changes, and environment cleanup. Let's take a look at all of them, one by one.

So, you've pushed/merged the latest changes to the GitHub branch, you (or your auto deployment script robot) SSH into the server, and... do what?


Phase 0. Putting the system down.

If we take into account those phases, the full deployment may take up to 5-10 seconds, or even more. What if during that time, someone is using your application and may...

The full tutorial [6 mins, 1133 words] is only for Premium Members

Become a Premium Member for $129/year or $29/month

Written by

You might also like