Support the ongoing development of Laravel.io →
posted 9 months ago
Architecture
Last updated 6 months ago.
0

If you make your migrations right it's doable. You can run old code on a migrated DB if the migrations are only additive, and you haven't changed or deleted something the old code relies on.

Then you can just do one server at a time like this:

  • Take Server 1 Offline
  • Update Server 1
  • Use Server 1 to perform DB migrations
  • Bring Server 1 Back Online
  • Take Server 2 Offline
  • Update Server 2
  • Bring Server 2 back online

Or just use Envoyer. The other question is do you really "need" zero downtime deploys or does it just sound nice to have? Forge can deploy one of my apps in less than 30 seconds.

Last updated by @james4645 9 months ago.
1

Sign in to participate in this thread!

LoadForge

Your banner here too?

Ibiza ibiza385 Joined 12 Feb 2022

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.