preloder

Deploy Magento 2 Like A BOSS

Prev Next

How do you deploy changes to the production environment? There are many articles about continuous deployment you may read about. Some of the articles are over-detailed with technical details. Rather than going to a point on how to setup or build deployment for your project you become Ph.D.

It is great to know everything, in theory, however, reality and complexity of projects are different.

76% of all websites are deployed manually by connecting via SSH and performing necessary “magic” commands. Any TYPO or incorrect command might lead to production downtime or even worth – a complete disaster.

Magento 2 deployment requires full attention to details when performing update manually. You have to remember to pull latest changes from your repository, clear outdated files, compile new files, deploy static content, clear cache. Don’t forget to clear Varnish cache, especially if you are running multi-node environment with more than one Varnish server.

I am one of these guys who love to automate as much as possible (maybe I am a developer). Of course, it requires lots of time and resources to plan automation, find appropriate tools and systems to fit your expectations. That is why I started playing with deployment tools available on the market. A few years ago there were just a few of them (e.g. BambooJenkins etc). Currently, there are much more available for us to use.

Recently I successfully deployed my Magento 2 Blog with DeployHQ. I was kind of afraid to start digging into any deployment tools before I met DeployHQ. Maybe because I saw only Bamboo and have no idea where to start. This is not a marketing post or something paid from DeployHQ guys. I am happy to say it took me 15 minutes to figure out and set up my first deploy from BitBucket to DigitalOcean server.

It takes way less effort to update my production environments with simple “Deploy” button click. Maybe I even consider scheduling updates on weekly basis. But definitely, it is a way to go.

The question of the Week

Do you use any tools for code deployment? Or Infrastructure deployment? How do you automate your daily work routine?

Send me your answer to blog@maxpronko.com or in the comments below I will be happy to read.

Max with his team of Magento enthusiasts won the Best Magento 1 to Magento 2 Migration Award at the Magento Imagine 2017. As CEO at Pronko Consulting, he is actively working with Magento 2, delivering superior customer experience. As one of the most famous developers on a market and in the Magento Community, he launched Magento 2 blog, Magento DevChannel – YouTube channel in 2017 where he shares his knowledge, experience and the best practices in the Magento field.

Posted on Sep 3, 2016

The Devletter

Subscribe to my Magento 2 tips and tutorials content.
Every week I send an interesting email directly to your inbox

Related Posts

Show
Hide
Pre-order the Magento 2 payment integration course TODAY PRE-ORDER
Hello. Add your message here.