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, 1121 words] is only for Premium Members

Login Or Become a Premium Member for $129/year or $29/month
What else you will get:
  • 59 courses (1057 lessons, total 42 h 44 min)
  • 79 long-form tutorials (one new every week)
  • access to project repositories
  • access to private Discord

Recent Premium Tutorials