Skip to content
Were you told Magento 2 doesn’t support zero-downtime deployment? They were wrong.
E-commerce · Updated on · 5 min read

Were you told Magento 2 doesn’t support zero-downtime deployment? They were wrong.

Magento 2, by default, does not provide a zero-downtime deployment system. You have to run commands that put the site into maintenance mode, recompile, generate static files and flush the cache.

But that doesn’t mean it can’t be done in a professional, fast way and without disruption.

I now do it on all my projects, using Deployer, a simple but powerful tool for automated deployment.


What is Deployer

Deployer is a PHP tool that lets you run automated deployments to remote servers over SSH.

It is designed to handle:

  • versioned releases with rollback
  • automatic symlinks between releases
  • shared file management (env.php, media/, etc.)
  • pre/post deploy commands (setup:upgrade, cache:flush, etc.)

It works perfectly with Magento 2.


How a zero-downtime deployment with Deployer works on Magento 2

In my workflow:

  1. The deployment runs into a new release folder
  2. The Magento commands are run (compilation, static content deploy, etc.)
  3. When everything is ready, the symlink is updated and points to the new release
  4. The site is immediately back up, with no visible downtime for the user

Real benefits

✅ No user ever sees the site in maintenance mode

✅ If something goes wrong, you roll back in 1 second

✅ Everything is tracked, versioned, controlled

✅ The same deployment works on staging, production, anywhere


Conclusion

Magento 2 has no built-in deployment system, but it’s not true that you can’t do it without downtime.

Just don’t work by hand and use tools like Deployer to do things the right way.

💡 Want to set up zero-downtime deployment on your Magento store too? Write to me and I’ll explain how to do it step by step.

Magento 2 Deployment Without Site Downtime

I have been subscribed to the MageFan newsletter for some time, and in recent days they recommended this plugin of theirs.

I haven’t had a chance to try it yet, but if the occasion arises I will definitely write a review. It seems very useful to bring to your attention, though, for all the clients who complain about the site having to go offline when releases are made.

Here are the main features and benefits:

  • No Downtime: Avoids taking the site down during updates and deployments, ensuring an uninterrupted user experience.
  • Automatic Deployment: Configure webhooks to automatically deploy changes from GIT without any manual intervention.
  • Universal Compatibility: Works with all web servers, including Apache and Nginx, and supports Redis and Varnish.
  • Easy to Use: An intuitive interface lets you manage deployments easily without having to go through complex configuration processes.
  • Improved Performance: Keep your site fast and responsive, even during the most demanding updates.

You might also like