bart delvaux - deployments with magento 2

Post on 08-Jan-2017

252 Views

Category:

Internet

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

DEPLOYMENTS WITH MAGENTO 2Tips & Tricks

BackgroundWhy deployments

Deployment in Magento 2

Questions

MENU

BACKGROUNDMe, Myself & ISAAC

MEBart Delvaux

ISAAC Software SolutionsPHP developerMagento specialistAuthor of

Magento 1.8 Development CookbookMagento 2 Development Cookbook

ISAAC

WHY DEPLOYMENTS

Development setupWHY DEPLOYMENTS

Development UAT Live

Deployments to release new versions

Minimal impact on production siteAutomated scriptMinimal downtime site

DEPLOYMENT

MAGENTO 2Where to think about when deploying

Deployment of code with composerGeneration of codeCSS compilation & generation of static filesInstall and upgrade scripts

DEPLOYMENT MAGENTO 2

Possible to use composerComposer install before deployment

--no-dev--optimize-autoloader

Don’t use composer update

Private repositories?

COMPOSER

Code is generated in var/generationOn the fly

Slower frontendPrepare as a background task

With command setup:di:compileUse the Magento production mode

With command deploy:mode:set

GENERATION OF CODE

Static content is generated in folder pub/staticCan be generated on the fly

Long page speeds first timesWith the console command setup:static-content:deploy

Long processPossible to run in background

CSS AND STATIC CONTENT

You need to run the install and upgrade scriptPut the site in maintenanceRun command setup:upgradeClean caches before going online

INSTALL AND UPGRADE SCRIPTS

IN SHORTThink about deployments

Try to automateUse composerPrepare in the backgroundGo in maintenance for the crucial part

QUESTIONS? WWW.ISAAC.NLBART.DELVAUX@ISAAC.NL

top related