首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >面对在magento云中更新magento的问题,将magento更新为最新版本的magento 2.3.2

面对在magento云中更新magento的问题,将magento更新为最新版本的magento 2.3.2
EN

Stack Overflow用户
提问于 2019-07-13 07:01:52
回答 2查看 753关注 0票数 0

现在,我们正在将magento更新到最新版本的Magento2.3.2,现在我们正在运行2.2.7。

我遵循在https://devdocs.magento.com/guides/v2.3/cloud/project/project-upgrade.html找到的2.3分支指南

我已采取以下步骤:

Step1:更新ece-tools版本

  1. 在本地工作站上,使用Composer执行更新。

作曲家更新magento/ece-工具

  1. 添加、提交和推送代码更改。

git添加-A && git提交-m“更新magento/ece-tools”& git推送原点

Step2:备份数据库

  1. 创建远程数据库的本地备份。

magento云db:dump

当我在我的终端中运行这个命令时,我得到的‘magento’不被识别为一个内部或外部命令、可操作的程序或批处理文件。

  1. 备份代码和媒体。

php /magento设置:备份-code-media

在部署之前备份暂存或生产环境数据库

php供应商/bin/ece-tools db-dump

Step3:完成升级

我有PHP 7.1.30版本

  1. 在完成升级之前,请按照https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html#update-autoload中的所有步骤更新autoload属性
  2. 将升级版本设置为

作曲家要求magento/产品-社区-版本2.3.2 -无更新

  1. 然后更新项目

作曲家更新

在编写器更新之后,我得到了一些错误

无法将您的要求解析为可安装的软件包集。

问题1

代码语言:javascript
复制
- magento/magento-cloud-metapackage 2.2.7 requires magento/product-enterprise-edition 2.2.7 -> satisfiable by magento/product-enterprise-edition[2.2.7] but these conflict with your requirements or minimum-stability.

- magento/magento-cloud-metapackage 2.2.7 requires magento/product-enterprise-edition 2.2.7 -> satisfiable by magento/product-enterprise-edition[2.2.7] but these conflict with your requirements or minimum-stability.

- Installation request for magento/magento-cloud-metapackage >=2.2.7 <2.2.8 -> satisfiable by magento/magento-cloud-metapackage[2.2.7].

请你指导我如何解决这个问题。

谢谢。

我的composer.json就像

代码语言:javascript
复制
{
"name": "magento/project-enterprise-edition",
"description": "eCommerce Platform for Growth (Enterprise Edition)",
"type": "project",
"version": "2.3.2",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"repositories": {
    "repo": {
        "type": "composer",
        "url": "https://repo.magento.com"
    },
    "amasty": {
        "type": "composer",
        "url": "https://composer.amasty.com/enterprise/"
    }
},
"require": {
    "magento/magento-cloud-metapackage": ">=2.2.7 <2.2.8",
    "gene/bluefoot": "^1.0",
    "amasty/promo": "^2.2",
    "sashas/bug-from-email": "^2.0",
    "amasty/shopby": "^2.11",
    "amasty/label": "^1.10",
    "connectpos/rest-api": "^1.1",
    "magento/product-community-edition": "2.3.2",
    "magento/product-enterprise-edition": "2.3.2"
},
"config": {
    "use-include-path": true
},
"autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/",
        "Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
    },
    "psr-0": {
        "": [
            "app/code/",
            "generated/code/"
        ]
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ],
    "exclude-from-classmap": [
        "**/dev/**",
        "**/update/**",
        "**/Test/**"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
        "Magento\\Tools\\": "dev/tools/Magento/Tools/",
        "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
        "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
        "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
    }
},
"minimum-stability": "alpha",
"prefer-stable": true,
"extra": {
    "magento-force": true,
    "magento-deploystrategy": "copy"
},
"require-dev": {
    "allure-framework/allure-phpunit": "~1.2.0",
    "friendsofphp/php-cs-fixer": "~2.13.0",
    "lusitanian/oauth": "~0.8.10",
    "magento/magento-coding-standard": "~1.0.0",
    "magento/magento2-functional-testing-framework": "~2.3.14",
    "pdepend/pdepend": "2.5.2",
    "phpunit/phpunit": "~6.5.0",
    "sebastian/phpcpd": "~3.0.0",
    "squizlabs/php_codesniffer": "3.3.1"
}}

错误命令行屏幕截图

EN

回答 2

Stack Overflow用户

发布于 2020-02-12 13:51:50

你需要移除

代码语言:javascript
复制
 "magento/product-community-edition": "2.3.2",
 "magento/product-enterprise-edition": "2.3.2"

,将作为magento-cloud-metapackage的依赖项安装。

和更改元包版本

票数 0
EN

Stack Overflow用户

发布于 2020-02-27 15:43:27

尝试将php切换到php7.2或更高版本。因为在Magento2.3.2中,它需要php版本的>= 7.2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57016911

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档