SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Page | 2© 2017 Magento, Inc.
Magento 2 Migration
Best Practices
Page | 3© 2017 Magento, Inc.
Brent
Peterson
Magento Evangelist for Wagento Creative
Page | 4© 2017 Magento, Inc.
• Main Components For The Migration
– Data
– Themes
– Extensions
– Customization
• Best Practices Analysis
– Extension Analysis
– Customization Analysis
– Core Code Hack Analysis
– Infrastructure Analysis
• Migration Steps
• Bonus (Time allowed)
• Q/A
Agenda
Highlights to consider in your migration.
Migration Overview
Page | 6© 2017 Magento, Inc.
• The data architecture has changed from Magento 1 to Magento 2
• Data migration focuses on the following:
– Customers
– Orders
– Products
– Promotions
– Store Configuration
– Custom Tables
• Magento Migration Tool: Allows for easy migration of tables from M1 to M2
• http://devdocs.magento.com/guides/v2.1/howdoi/migrate/migrate-data.html
Data Migration
Page | 7© 2017 Magento, Inc.
Theming has changed.
Themes
Extensive layout level changes for better usability and performance.
You current theme can not be directly moved to new install.
Theme re-build is required for Magento 2.
We build themes off the Magento responsive theme.
You are now required to build and deploy themes.
Page | 8© 2017 Magento, Inc.
Time for a theme update!
Themes
Extensive layout level changes for better usability and performance.
You current theme can not be directly moved to new install.
Theme re-build is required for Magento 2.
We build themes off the Magento responsive theme.
You are now required to build and deploy themes.
Page | 9© 2017 Magento, Inc.
Take this opportunity to update UX and even add AMP
Themes
Extensive layout level changes for better usability and performance.
You current theme can not be directly moved to new install.
Theme re-build is required for Magento 2.
We build themes off the Magento responsive theme.
You are now required to build and deploy themes.
Page | 10© 2017 Magento, Inc.
Magento offers a good framework to build from.
Themes
Extensive layout level changes for better usability and performance.
You current theme can not be directly moved to new install.
Theme re-build is required for Magento 2.
We build themes off the Magento responsive theme.
You are now required to build and deploy themes.
Page | 11© 2017 Magento, Inc.
It’s easy and hard… at the same time!
Themes
Extensive layout level changes for better usability and performance.
You current theme can not be directly moved to new install.
Theme re-build is required for Magento 2.
We build themes off the Magento responsive theme.
You are now required to build and deploy themes.
Page | 12© 2017 Magento, Inc.
The main components for migrating extensions.
Extensions
You can’t directly use your old extensions in Magento 2.
Most extension builders are writing their extensions for Magento 2.
There are many new technology partners writing similar extensions.
If you can’t find your old extension you can always rebuild it.
Page | 13© 2017 Magento, Inc.
The Magento community is the best in the world.
Extensions
You can’t directly use your old extensions in Magento 2.
Most extension builders are writing their extensions for Magento 2.
There are many new technology partners writing similar extensions.
If you can’t find your old extension you can always rebuild it.
Page | 14© 2017 Magento, Inc.
If you extension doesn’t exist in Magento 2, look for a new one!
Extensions
You can’t directly use your old extensions in Magento 2.
Most extension builders are writing their extensions for Magento 2.
There are many new technology partners writing similar extensions.
If you can’t find your old extension you can always rebuild it.
Page | 15© 2017 Magento, Inc.
Look for a certified developer.
Extensions
You can’t directly use your old extensions in Magento 2.
Most extension builders are writing their extensions for Magento 2.
There are many new technology partners writing similar extensions.
If you can’t find your old extension you can always rebuild it.
Page | 16© 2017 Magento, Inc.
The bits that aren’t already an existing extension.
Customizations
Your Magento 1.x code is not compatible in Magento 2.
You will have to migrate or re-write your custom code.
Magento Code Migration Tool.
Because the tool is automated there will be refactoring that is required.
Page | 17© 2017 Magento, Inc.
Take this time to make your code even better.
Customizations
Your Magento 1.x code is not compatible in Magento 2.
You will have to migrate or re-write your custom code.
Magento Code Migration Tool.
Because the tool is automated there will be refactoring that is required.
Page | 18© 2017 Magento, Inc.
https://github.com/magento/code-migration
Customizations
Your Magento 1.x code is not compatible in Magento 2.
You will have to migrate or re-write your custom code.
Magento Code Migration Tool.
Because the tool is automated there will be refactoring that is required.
Page | 19© 2017 Magento, Inc.
A small amount of work is required after migration
Customizations
Your Magento 1.x code is not compatible in Magento 2.
You will have to migrate or re-write your custom code.
Magento Code Migration Tool.
Because the tool is automated there will be refactoring that is required.
What the heck are we doing?
ANALYSIS
Page | 21© 2017 Magento, Inc.
{ Prioritize to determine what you need }
Extensions
List all installed extensions.
• Must needed extensions.
• Good to have.
• Can be installed in the future.
• Not needed.
Divide extensions into four groups.
• Unnecessary
• Expired
• Non-Priority
Cleanup
List Extensions Available In Magento 2.
List Extensions To Be Custom Built
Page | 22© 2017 Magento, Inc.
{ diff –wrql <source> <destination> }
Core code Hack
Compare Magento source code with your project source code.
Check & identify all modified code.
Check if hack requirement is already available in Magento 2.
Identify which hack requirement needs redevelopment.
Page | 23© 2017 Magento, Inc.
http://devdocs.magento.com/magento-system-requirements.html
Infrastructure
Magento 2 has new infrastructure requirements.
• Dropped support for PHP 5.5.X.
• Added support for PHP 7.0.X.
• Added support for Elasticsearch 1.7 And 2.X.
• Native support for SOLR and Varnish
Update your infrastructure to suite Magento 2.
• http://devdocs.magento.com/guides/v2.1/install-gde/docker/docker-over.html
Dev Box is a useful tool
The Migration
Page | 25© 2017 Magento, Inc.
M1 To M2 Migration Steps
Take Live
DB Clone
Empty All
Log Tables
Install Data
Migration Tool
Database
Migration
Setting
Migration
Data
Migration
Delta
Migration
Choose Magento
Edition & Version
Troubleshoot
Errors
Data Migration Troubleshooting Guide: http://devdocs.magento.com/guides/v2.1/migration/migration-troubleshooting.html
Codebase
Migration
Put M1 In
Maintenance Mode
Put Store In
Production Mode
Start M2 Cron
Jobs
Flush Cache Reindex Data
Final server
changes
3rd Party
Extensions
Implement
Custom
Features
Install
Themes
Keep
Doing
This Till
Launch
Migrate Data
Manually
(Media, ACL,
Admin)
Page | 26© 2017 Magento, Inc.
Install Magento’s Data Migration Tool
• Data: Stores, Websites, And System Configuration
• Code: bin/magento migrate:settings [-r|--reset] {<path to config.xml>}
Step 1: Setting Migration
• Data: Catalogs, Customers, And Orders,
• Code: bin/magento migrate:data [-r|--reset] {<path to config.xml>}
Step 2: Data Migration
• Data: Same As Data Migration
• Code: bin/magento migrate:delta [-r|--reset] {<path to config.xml>}
Step 3: Delta Migration
How deployments have changed in Magento 2
Bonus time
Page | 28© 2017 Magento, Inc.
Create
Artifact
Push – Build – Tar – Deploy - Run
Deployment
Push to
Git
Build
Server
(or staging)
Send to
webheads
Data Migration Troubleshooting Guide:
http://devdocs.magento.com/guides/v2.1/migration/migration-troubleshooting.html
Web
Head 1
Web
Head 2
Web
Head 3
Page | 29© 2017 Magento, Inc.
Questions?
Anyone...
email: brent@wagento.com
twitter: @brentwpeterson
Page | 30© 2017 Magento, Inc.
• Backup database.
• mysqldump –u<user> -p <database> > myfile.sql
• Restore data and empty all log tables.
• mysql –u<user> -p <new_database> < myfile.sql
• truncate dataflow_batch_export;truncate dataflow_batch_import;truncate log_customer;truncate
log_quote;truncate log_summary;truncate log_summary_type;truncate log_url;truncate log_url_info;truncate
log_visitor;truncate log_visitor_info;truncate log_visitor_online;truncate report_viewed_product_index;truncate
report_compared_product_index;truncate report_event;truncate sendfriend_log;
MySQL backup and restore
Page | 31© 2017 Magento, Inc.
Thank you
email: brent@wagento.com
twitter: @brentwpeterson

Weitere ähnliche Inhalte

Was ist angesagt?

Knolx j query-form-validation-slides
Knolx j query-form-validation-slidesKnolx j query-form-validation-slides
Knolx j query-form-validation-slidesKnoldus Inc.
 
Say hello world with angular 5
Say hello world with angular 5Say hello world with angular 5
Say hello world with angular 5Abhishek Mallick
 
Magento 2 Seminar - Welkom
Magento 2 Seminar - WelkomMagento 2 Seminar - Welkom
Magento 2 Seminar - WelkomYireo
 
Novidades Angular 4.x e CLI
Novidades Angular 4.x e CLI Novidades Angular 4.x e CLI
Novidades Angular 4.x e CLI Loiane Groner
 
Port80: the uncertainty principle
Port80: the uncertainty principlePort80: the uncertainty principle
Port80: the uncertainty principleFred Heath
 
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...intranda GmbH
 
ABAP CodeRetreat 20.5.2017 Vienna - Refactoring
ABAP CodeRetreat 20.5.2017 Vienna - RefactoringABAP CodeRetreat 20.5.2017 Vienna - Refactoring
ABAP CodeRetreat 20.5.2017 Vienna - RefactoringCadaxo GmbH
 

Was ist angesagt? (8)

Knolx j query-form-validation-slides
Knolx j query-form-validation-slidesKnolx j query-form-validation-slides
Knolx j query-form-validation-slides
 
Web development phases
Web development phasesWeb development phases
Web development phases
 
Say hello world with angular 5
Say hello world with angular 5Say hello world with angular 5
Say hello world with angular 5
 
Magento 2 Seminar - Welkom
Magento 2 Seminar - WelkomMagento 2 Seminar - Welkom
Magento 2 Seminar - Welkom
 
Novidades Angular 4.x e CLI
Novidades Angular 4.x e CLI Novidades Angular 4.x e CLI
Novidades Angular 4.x e CLI
 
Port80: the uncertainty principle
Port80: the uncertainty principlePort80: the uncertainty principle
Port80: the uncertainty principle
 
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
Developing Goobi: An Open-Source Workflow Tracking Tool for Digitization Proj...
 
ABAP CodeRetreat 20.5.2017 Vienna - Refactoring
ABAP CodeRetreat 20.5.2017 Vienna - RefactoringABAP CodeRetreat 20.5.2017 Vienna - Refactoring
ABAP CodeRetreat 20.5.2017 Vienna - Refactoring
 

Ähnlich wie Magento 2 Best Practice MLUK17

Igor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesIgor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesAtwix
 
Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Elogic Magento Development
 
MidwestPHP - Getting Started with Magento 2
MidwestPHP - Getting Started with Magento 2MidwestPHP - Getting Started with Magento 2
MidwestPHP - Getting Started with Magento 2Mathew Beane
 
Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more AResourcePool
 
White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16Patrick Kong
 
Imagine recap-devhub
Imagine recap-devhubImagine recap-devhub
Imagine recap-devhubMagento Dev
 
Expert guidance on migrating from magento 1 to magento 2
Expert guidance on migrating from magento 1 to magento 2Expert guidance on migrating from magento 1 to magento 2
Expert guidance on migrating from magento 1 to magento 2James Cowie
 
Magento 2.2: It's Coming Right For You! | Colorado Magento Meetup
Magento 2.2: It's Coming Right For You! | Colorado Magento MeetupMagento 2.2: It's Coming Right For You! | Colorado Magento Meetup
Magento 2.2: It's Coming Right For You! | Colorado Magento MeetupKelly Mason
 
Upgraded magento migration services and tools
Upgraded magento migration services and toolsUpgraded magento migration services and tools
Upgraded magento migration services and toolsAegis Softtech
 
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum PerformanceEugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum PerformanceMeet Magento Italy
 
Testing in Magento 2
Testing in Magento 2 Testing in Magento 2
Testing in Magento 2 Igor Miniailo
 
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineSPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineNCCOMMS
 
Magento Theme from Development to Importance in 2022.pptx
Magento Theme from Development to Importance in 2022.pptxMagento Theme from Development to Importance in 2022.pptx
Magento Theme from Development to Importance in 2022.pptxAgento Support
 
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...Arron Moss
 
How upgrading to Magento 2.0 will fuel your growth?
How upgrading to Magento 2.0 will fuel your growth? How upgrading to Magento 2.0 will fuel your growth?
How upgrading to Magento 2.0 will fuel your growth? Designomate
 
Backwards Compatibility Developers Guide. #MM17NL
Backwards Compatibility Developers Guide. #MM17NLBackwards Compatibility Developers Guide. #MM17NL
Backwards Compatibility Developers Guide. #MM17NLIgor Miniailo
 

Ähnlich wie Magento 2 Best Practice MLUK17 (20)

Igor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best PracticesIgor Miniailo - Magento 2 API Design Best Practices
Igor Miniailo - Magento 2 API Design Best Practices
 
Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.Chernivtsi Magento Meetup&Contribution day. Naida V.
Chernivtsi Magento Meetup&Contribution day. Naida V.
 
MidwestPHP - Getting Started with Magento 2
MidwestPHP - Getting Started with Magento 2MidwestPHP - Getting Started with Magento 2
MidwestPHP - Getting Started with Magento 2
 
Migrating from Magento 1 to Magento 2
Migrating from Magento 1 to Magento 2Migrating from Magento 1 to Magento 2
Migrating from Magento 1 to Magento 2
 
Magento 2 development
Magento 2 developmentMagento 2 development
Magento 2 development
 
Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more Hire Magento 2 developer India, Call us for more
Hire Magento 2 developer India, Call us for more
 
How to install Magento 2 extensions.pptx
How to install Magento 2 extensions.pptxHow to install Magento 2 extensions.pptx
How to install Magento 2 extensions.pptx
 
White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16
 
White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16White Paper - Magento 2.0 Performance and Scalability 03.31.16
White Paper - Magento 2.0 Performance and Scalability 03.31.16
 
Imagine recap-devhub
Imagine recap-devhubImagine recap-devhub
Imagine recap-devhub
 
Expert guidance on migrating from magento 1 to magento 2
Expert guidance on migrating from magento 1 to magento 2Expert guidance on migrating from magento 1 to magento 2
Expert guidance on migrating from magento 1 to magento 2
 
Magento 2.2: It's Coming Right For You! | Colorado Magento Meetup
Magento 2.2: It's Coming Right For You! | Colorado Magento MeetupMagento 2.2: It's Coming Right For You! | Colorado Magento Meetup
Magento 2.2: It's Coming Right For You! | Colorado Magento Meetup
 
Upgraded magento migration services and tools
Upgraded magento migration services and toolsUpgraded magento migration services and tools
Upgraded magento migration services and tools
 
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum PerformanceEugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
Eugene Shaksuvarov - Tuning Magento 2 for Maximum Performance
 
Testing in Magento 2
Testing in Magento 2 Testing in Magento 2
Testing in Magento 2
 
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint OnlineSPUnite17 Migrating your Customizations from On-prem to SharePoint Online
SPUnite17 Migrating your Customizations from On-prem to SharePoint Online
 
Magento Theme from Development to Importance in 2022.pptx
Magento Theme from Development to Importance in 2022.pptxMagento Theme from Development to Importance in 2022.pptx
Magento Theme from Development to Importance in 2022.pptx
 
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...
MDOQ - Platform As A Service Agile Workflow Application for Magento - Launch ...
 
How upgrading to Magento 2.0 will fuel your growth?
How upgrading to Magento 2.0 will fuel your growth? How upgrading to Magento 2.0 will fuel your growth?
How upgrading to Magento 2.0 will fuel your growth?
 
Backwards Compatibility Developers Guide. #MM17NL
Backwards Compatibility Developers Guide. #MM17NLBackwards Compatibility Developers Guide. #MM17NL
Backwards Compatibility Developers Guide. #MM17NL
 

Kürzlich hochgeladen

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 

Kürzlich hochgeladen (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Magento 2 Best Practice MLUK17

  • 1.
  • 2. Page | 2© 2017 Magento, Inc. Magento 2 Migration Best Practices
  • 3. Page | 3© 2017 Magento, Inc. Brent Peterson Magento Evangelist for Wagento Creative
  • 4. Page | 4© 2017 Magento, Inc. • Main Components For The Migration – Data – Themes – Extensions – Customization • Best Practices Analysis – Extension Analysis – Customization Analysis – Core Code Hack Analysis – Infrastructure Analysis • Migration Steps • Bonus (Time allowed) • Q/A Agenda
  • 5. Highlights to consider in your migration. Migration Overview
  • 6. Page | 6© 2017 Magento, Inc. • The data architecture has changed from Magento 1 to Magento 2 • Data migration focuses on the following: – Customers – Orders – Products – Promotions – Store Configuration – Custom Tables • Magento Migration Tool: Allows for easy migration of tables from M1 to M2 • http://devdocs.magento.com/guides/v2.1/howdoi/migrate/migrate-data.html Data Migration
  • 7. Page | 7© 2017 Magento, Inc. Theming has changed. Themes Extensive layout level changes for better usability and performance. You current theme can not be directly moved to new install. Theme re-build is required for Magento 2. We build themes off the Magento responsive theme. You are now required to build and deploy themes.
  • 8. Page | 8© 2017 Magento, Inc. Time for a theme update! Themes Extensive layout level changes for better usability and performance. You current theme can not be directly moved to new install. Theme re-build is required for Magento 2. We build themes off the Magento responsive theme. You are now required to build and deploy themes.
  • 9. Page | 9© 2017 Magento, Inc. Take this opportunity to update UX and even add AMP Themes Extensive layout level changes for better usability and performance. You current theme can not be directly moved to new install. Theme re-build is required for Magento 2. We build themes off the Magento responsive theme. You are now required to build and deploy themes.
  • 10. Page | 10© 2017 Magento, Inc. Magento offers a good framework to build from. Themes Extensive layout level changes for better usability and performance. You current theme can not be directly moved to new install. Theme re-build is required for Magento 2. We build themes off the Magento responsive theme. You are now required to build and deploy themes.
  • 11. Page | 11© 2017 Magento, Inc. It’s easy and hard… at the same time! Themes Extensive layout level changes for better usability and performance. You current theme can not be directly moved to new install. Theme re-build is required for Magento 2. We build themes off the Magento responsive theme. You are now required to build and deploy themes.
  • 12. Page | 12© 2017 Magento, Inc. The main components for migrating extensions. Extensions You can’t directly use your old extensions in Magento 2. Most extension builders are writing their extensions for Magento 2. There are many new technology partners writing similar extensions. If you can’t find your old extension you can always rebuild it.
  • 13. Page | 13© 2017 Magento, Inc. The Magento community is the best in the world. Extensions You can’t directly use your old extensions in Magento 2. Most extension builders are writing their extensions for Magento 2. There are many new technology partners writing similar extensions. If you can’t find your old extension you can always rebuild it.
  • 14. Page | 14© 2017 Magento, Inc. If you extension doesn’t exist in Magento 2, look for a new one! Extensions You can’t directly use your old extensions in Magento 2. Most extension builders are writing their extensions for Magento 2. There are many new technology partners writing similar extensions. If you can’t find your old extension you can always rebuild it.
  • 15. Page | 15© 2017 Magento, Inc. Look for a certified developer. Extensions You can’t directly use your old extensions in Magento 2. Most extension builders are writing their extensions for Magento 2. There are many new technology partners writing similar extensions. If you can’t find your old extension you can always rebuild it.
  • 16. Page | 16© 2017 Magento, Inc. The bits that aren’t already an existing extension. Customizations Your Magento 1.x code is not compatible in Magento 2. You will have to migrate or re-write your custom code. Magento Code Migration Tool. Because the tool is automated there will be refactoring that is required.
  • 17. Page | 17© 2017 Magento, Inc. Take this time to make your code even better. Customizations Your Magento 1.x code is not compatible in Magento 2. You will have to migrate or re-write your custom code. Magento Code Migration Tool. Because the tool is automated there will be refactoring that is required.
  • 18. Page | 18© 2017 Magento, Inc. https://github.com/magento/code-migration Customizations Your Magento 1.x code is not compatible in Magento 2. You will have to migrate or re-write your custom code. Magento Code Migration Tool. Because the tool is automated there will be refactoring that is required.
  • 19. Page | 19© 2017 Magento, Inc. A small amount of work is required after migration Customizations Your Magento 1.x code is not compatible in Magento 2. You will have to migrate or re-write your custom code. Magento Code Migration Tool. Because the tool is automated there will be refactoring that is required.
  • 20. What the heck are we doing? ANALYSIS
  • 21. Page | 21© 2017 Magento, Inc. { Prioritize to determine what you need } Extensions List all installed extensions. • Must needed extensions. • Good to have. • Can be installed in the future. • Not needed. Divide extensions into four groups. • Unnecessary • Expired • Non-Priority Cleanup List Extensions Available In Magento 2. List Extensions To Be Custom Built
  • 22. Page | 22© 2017 Magento, Inc. { diff –wrql <source> <destination> } Core code Hack Compare Magento source code with your project source code. Check & identify all modified code. Check if hack requirement is already available in Magento 2. Identify which hack requirement needs redevelopment.
  • 23. Page | 23© 2017 Magento, Inc. http://devdocs.magento.com/magento-system-requirements.html Infrastructure Magento 2 has new infrastructure requirements. • Dropped support for PHP 5.5.X. • Added support for PHP 7.0.X. • Added support for Elasticsearch 1.7 And 2.X. • Native support for SOLR and Varnish Update your infrastructure to suite Magento 2. • http://devdocs.magento.com/guides/v2.1/install-gde/docker/docker-over.html Dev Box is a useful tool
  • 25. Page | 25© 2017 Magento, Inc. M1 To M2 Migration Steps Take Live DB Clone Empty All Log Tables Install Data Migration Tool Database Migration Setting Migration Data Migration Delta Migration Choose Magento Edition & Version Troubleshoot Errors Data Migration Troubleshooting Guide: http://devdocs.magento.com/guides/v2.1/migration/migration-troubleshooting.html Codebase Migration Put M1 In Maintenance Mode Put Store In Production Mode Start M2 Cron Jobs Flush Cache Reindex Data Final server changes 3rd Party Extensions Implement Custom Features Install Themes Keep Doing This Till Launch Migrate Data Manually (Media, ACL, Admin)
  • 26. Page | 26© 2017 Magento, Inc. Install Magento’s Data Migration Tool • Data: Stores, Websites, And System Configuration • Code: bin/magento migrate:settings [-r|--reset] {<path to config.xml>} Step 1: Setting Migration • Data: Catalogs, Customers, And Orders, • Code: bin/magento migrate:data [-r|--reset] {<path to config.xml>} Step 2: Data Migration • Data: Same As Data Migration • Code: bin/magento migrate:delta [-r|--reset] {<path to config.xml>} Step 3: Delta Migration
  • 27. How deployments have changed in Magento 2 Bonus time
  • 28. Page | 28© 2017 Magento, Inc. Create Artifact Push – Build – Tar – Deploy - Run Deployment Push to Git Build Server (or staging) Send to webheads Data Migration Troubleshooting Guide: http://devdocs.magento.com/guides/v2.1/migration/migration-troubleshooting.html Web Head 1 Web Head 2 Web Head 3
  • 29. Page | 29© 2017 Magento, Inc. Questions? Anyone... email: brent@wagento.com twitter: @brentwpeterson
  • 30. Page | 30© 2017 Magento, Inc. • Backup database. • mysqldump –u<user> -p <database> > myfile.sql • Restore data and empty all log tables. • mysql –u<user> -p <new_database> < myfile.sql • truncate dataflow_batch_export;truncate dataflow_batch_import;truncate log_customer;truncate log_quote;truncate log_summary;truncate log_summary_type;truncate log_url;truncate log_url_info;truncate log_visitor;truncate log_visitor_info;truncate log_visitor_online;truncate report_viewed_product_index;truncate report_compared_product_index;truncate report_event;truncate sendfriend_log; MySQL backup and restore
  • 31. Page | 31© 2017 Magento, Inc. Thank you email: brent@wagento.com twitter: @brentwpeterson