現在、magento を最新バージョンの magento 2.3.2 に更新する作業を行っており、現在は 2.2.7 を実行しています。
https://devdocs.magento.com/guides/v2.3/cloud/project/project-upgrade.htmlにある 2.3 ブランチのガイドに従ってい ます
次の手順を実行しました。
Step1: ece-tools のバージョンを更新する
- ローカル ワークステーションで、Composer を使用して更新を実行します。
composer update magento/ece-tools
- コードの変更を追加、コミット、およびプッシュします。
git add -A && git commit -m “Update magento/ece-tools” && git push origin
ステップ 2: データベースをバックアップする
- リモート データベースのローカル バックアップを作成します。
マジェントクラウドデシベル:ダンプ
ターミナルでこのコマンドを実行すると、「magento-cloud」が内部コマンドまたは外部コマンド、操作可能なプログラムまたはバッチ ファイルとして認識されません。
- コードとメディアをバックアップします。
php bin/magento setup:backup –code [–media]
デプロイ前にステージングまたは本番環境のデータベースをバックアップするには
PHP ベンダー/bin/ece-tools db-dump
ステップ 3: アップグレードを完了する
私はPHP 7.1.30バージョンを持っています
アップグレードを完了する前に、オートロード プロパティを更新し ます。 https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html#update-autoload
を使用してアップグレードバージョンを設定します
composer require magento/product-community-edition 2.3.2 –no-update
- 次に、プロジェクトを更新します
作曲家の更新
コンポーザーの更新後、エラーが発生します
お客様の要件は、インストール可能な一連のパッケージに解決できませんでした。
問題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"
}}