【问题标题】:Facing issues on updating magento in magento cloud, updating magento to latest version of magento 2.3.2面临在 magento 云中更新 magento 的问题,将 magento 更新到最新版本的 magento 2.3.2
【发布时间】:2019-11-22 19:24:14
【问题描述】:

现在我们正在努力将 magento 更新到最新版本的 magento 2.3.2 现在我们正在运行 2.2.7。

我按照 2.3 分支的指南在 https://devdocs.magento.com/guides/v2.3/cloud/project/project-upgrade.html

我已采取以下步骤:

Step1:更新ece-tools版本

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

作曲家更新 magento/ece-tools

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

git add -A && git commit -m “更新 magento/ece-tools” && git push origin


Step2:备份数据库

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

magento-cloud db:dump

当我在终端中运行此命令时,我得到 “magento-cloud”不被识别为内部或外部命令, 可运行的程序或批处理文件。

  1. 备份代码和媒体。

php bin/magento setup:backup –code [–media]

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

php vendor/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

  2. 使用设置升级版本

composer 需要 magento/product-community-edition 2.3.2 –no-update

  1. 然后更新项目

作曲家更新

作曲家更新后我得到一些错误

您的需求无法解析为一组可安装的软件包。

问题 1

- 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 喜欢

{
"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"
}}

error command line screenshot

【问题讨论】:

    标签: php git magento magento2 magento-2.3


    【解决方案1】:

    你需要删除

     "magento/product-community-edition": "2.3.2",
     "magento/product-enterprise-edition": "2.3.2"
    

    来自composer.json,将作为magento-cloud-metapackage的依赖项安装

    并更改元包版本

    【讨论】:

      【解决方案2】:

      尝试将 php 切换到 php 7.2 或更高版本。因为从 magento 2.3.2 开始,它需要 php version >= 7.2

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多