Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/sbboke.com/wp-content/plugins/wordpress-seo/src/integrations/front-end-integration.php:409) in /www/wwwroot/sbboke.com/wp-content/themes/pacify/content-single.php on line 5

Magento2 升级核心版本

M2 的核心版本升级非常方便,升级只需要两步:

//第一步,升级 composer 到最新版本,其中 2.3.1 是版本号,改成最新的 
composer require magento/product-community-edition 2.3.1 --no-update  
//第二步,执行升级 
composer update

然后全部重新 deploy 一次就好了,并且记得清空一次 cron_schedule 表。

如果前台报错,修改文件权限:http://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-system-perms.html

官方文档:http://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html

完成后,务必进行详细的全面测试

deploy命令

php bin/magento maintenance:enable rm -rf var/di/* && rm -rf generated/* && rm -rf var/generation/* && rm -rf var/cache/* && rm -rf var/page_cache/* && rm -rf var/view_preprocessed/* && rm -rf pub/static/* && mkdir var/di php bin/magento setup:upgrade && php bin/magento setup:di:compile php bin/magento setup:static-content:deploy en_US -f php bin/magento indexer:reindex php bin/magento maintenance:disable php bin/magento cache:clean && php bin/magento cache:flush

相关文章

0 0 投票数
文章评分
订阅评论
提醒
0 评论
内联反馈
查看所有评论