Magento – Magento2 CI Server Integration for Production

deploymentmagento2

What are steps, guidelines and flows that needs to be followed for a successfully Magento2 Continuous Integration workflow ?

Best Answer

We're currently working on improving our deployment process in Magento 2. I'd welcome any feedback you have - please ping me on Twitter or email.

Right now on M2 you'd do the following (in your environment)

  • Get or update code (git/etc...)
  • composer install
  • bin/magento setup:upgrade (or setup:install)
  • bin/magento set:mode production

FYI set:mode production does a

  • bin/magento setup:di:compile
  • bin/magento setup:static-content:deploy

There are some other approaches you can use now to get closer to a 2 step build and deploy process but they're rather complex.

Related Topic