{"id":3063,"date":"2020-09-14T12:23:01","date_gmt":"2020-09-14T09:23:01","guid":{"rendered":"https:\/\/magecloud.agency\/?p=3063"},"modified":"2024-04-04T14:38:02","modified_gmt":"2024-04-04T11:38:02","slug":"magento-2-zero-downtime-deployments-with-envoyer","status":"publish","type":"post","link":"https:\/\/magecloud.agency\/magento-2-zero-downtime-deployments-with-envoyer\/","title":{"rendered":"Magento 2 Zero Downtime Deployments with Envoyer"},"content":{"rendered":"
Magento 2 Zero Downtime Deployments? Yes, it’s possible – with Envoyer.<\/span><\/p>\n <\/p>\n And now, let’s go through what we know right now.<\/span><\/p>\n <\/p>\n <\/p>\n Do you hate to see when your Magento 2 store is broken or is in maintenance mode while running Magento 2 deployment commands? Yes? That’s great. We found a solution, that will help you with this pain.<\/span><\/p>\n <\/p>\n With Magento 1, deployments were a lot easier. For example, no setup:upgrade<\/em> command or setup:static-content:<\/em> deploy was necessary to deploy code for a website. We only needed to pull in the changes, flush the Magento cache and we were ready to go.<\/span><\/p>\n <\/p>\n With Magento 2, things are a little bit different.<\/span><\/p>\n <\/p>\n Magento 2 offers significant improvements over Magento 1 in many areas, with one particular highlight being the ability to manage your code with the composer<\/a><\/span>. <\/span>As a result, deploying sites managed with the composer requires a little more configuration on the code deployment side since we need to resolve the composer dependencies at deploy time.<\/span><\/p>\n <\/p>\n For every newly installed or updated module, we now have to run setup:upgrade<\/em>, compile code and take a few other final steps. This process often makes the store either slow or unavailable for a while.<\/span><\/p>\n <\/p>\n For sure, the length of time your production site is in maintenance mode depends on the size of the site, the number of changes applied during the deployment, and the configuration for static content deployment.<\/span><\/p>\n <\/p>\n We, at MageCloud, have been working with Magento since Magento 1.0. And after Magento 2.0 release, we\u2019ve tried different approaches to develop a process that allows us to deploy at any time, any day, without any problem.<\/span><\/p>\n <\/p>\n And, finally, we found a proper solution to prevent downtime during deployment that may be lengthy in some cases.<\/span><\/p>\n <\/p>\nMagento 2 Zero Downtime Deployments<\/b><\/span><\/h3>\n