Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 68fa9a7

Browse files
Merge pull request #5189 from magento/MAGEDOC-4042-preRelease-install
Q3 pre-release Composer install instructions
2 parents 925066f + 048fcdb commit 68fa9a7

File tree

3 files changed

+131
-96
lines changed

3 files changed

+131
-96
lines changed

guides/v2.3/cloud/project/project-upgrade.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ You can upgrade the core {{site.data.var.ee}} code base to version 2.3. It is be
2020

2121
If you use PHP version 7.2, you must remove the `mcrypt` extension from the [`extensions` section of the `.magento.app.yaml` file]({{page.baseurl}}/cloud/project/project-conf-files_magento-app.html#configure-php-options). For Pro projects, you need to create a support ticket to completely disable the `mcrypt` extension.
2222

23-
1. Before completing the upgrade, you must [update the `autoload`]({{page.baseurl}}/comp-mgr/cli/cli-upgrade.html#update-autoload) property of the `composer.json` file.
24-
2523
1. Change to your Magento root directory and set the upgrade version using the [version constraint syntax]({{page.baseurl}}/cloud/project/ece-tools-upgrade-project.html#metapackage).
2624

2725
```bash

guides/v2.3/comp-mgr/cli/cli-upgrade.md

Lines changed: 102 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -36,96 +36,103 @@ Complete the following prerequisites to prepare your environment before starting
3636
{: .bs-callout-info }
3737
Optionally, you can create a [custom maintenance mode page].
3838

39-
## Upgrade using the command line {#upgrade-cli-upgr}
40-
4139
Using the more manual process of upgrading via the command line allows you to track and control exactly what is being changed in the upgrade.
4240

43-
### Backup `composer.json`
41+
## Manage packages
4442

45-
Backup the existing `composer.json` file in the Magento installation directory.
43+
{:.bs-callout-info}
44+
See the examples at the end of this section for help specifying different release levels. For example, minor release, quality patch, and security patch. {{site.data.var.ee}} customers can access 2.3.x patches two weeks before the General Availability (GA) date.
4645

47-
### Manage packages
46+
1. Backup the `composer.json` file.
4847

49-
Specify needed packages and remove any unneeded ones before proceeding with the upgrade.
48+
```bash
49+
cp composer.json composer.json.bak
50+
```
5051

51-
#### Deactivate the {{ ce }} update (for edition upgrade only)
52+
1. Add or remove specific packages based on your needs. For example, if you are upgrading from {{ ce }} to {{ ee }}, remove the {{ ce }} package.
5253

53-
_Optional_—If you are upgrading from {{ ce }} to {{ ee }}, deactivate the {{ ce }} update:
54+
```bash
55+
composer remove magento/product-community-edition --no-update
56+
```
5457

55-
```bash
56-
composer remove magento/product-community-edition --no-update
57-
```
58+
1. Indicate the Magento packages, both the edition (`community` or `enterprise`) and the version (`{{ page.guide_version }}.3`), that you want to upgrade to.
5859

59-
#### Specify Magento packages
60+
_{{ ce }}_:
6061

61-
Indicate the Magento packages, both the edition (`community` or `enterprise`) and the version (`{{ page.guide_version }}.3`), that you want to upgrade to.
62+
```bash
63+
composer require magento/product-community-edition={{ page.guide_version }}.3 --no-update
64+
```
6265

63-
_{{ ce }}_:
66+
_{{ ee }}_:
6467

65-
```bash
66-
composer require magento/product-community-edition={{ page.guide_version }}.3 --no-update
67-
```
68+
```bash
69+
composer require magento/product-enterprise-edition={{ page.guide_version }}.3 --no-update
70+
```
6871

69-
_{{ ee }}_:
72+
<div class="bs-callout-tip" markdown="1">
73+
To see the full list of available {{ page.guide_version }} versions:
7074

71-
```bash
72-
composer require magento/product-enterprise-edition={{ page.guide_version }}.3 --no-update
73-
```
75+
_{{site.data.var.ce}}_:
76+
77+
```bash
78+
composer show magento/product-community-edition {{ page.guide_version }}.* --all | grep -m 1 versions
79+
```
7480

75-
<div class="bs-callout-tip" markdown="1">
76-
To see the full list of available {{ page.guide_version }} version:
81+
_{{site.data.var.ce}}_:
7782

78-
_Magento Open Source_:
83+
```bash
84+
composer show magento/product-enterprise-edition {{ page.guide_version }}.* --all | grep -m 1 versions
85+
```
7986

80-
```bash
81-
composer show magento/product-community-edition {{ page.guide_version }}.* --all | grep -m 1 versions
82-
```
87+
</div>
8388

84-
_Magento Commerce_:
89+
1. Specify additional packages.
8590

86-
```bash
87-
composer show magento/product-enterprise-edition {{ page.guide_version }}.* --all | grep -m 1 versions
88-
```
91+
```bash
92+
composer require --dev allure-framework/allure-phpunit:~1.2.0 friendsofphp/php-cs-fixer:~2.14.0 lusitanian/oauth:~0.8.10 magento/magento-coding-standard:~3.0.0 magento/magento2-functional-testing-framework:2.4.3 pdepend/pdepend:2.5.2 phpmd/phpmd:@stable phpunit/phpunit:~6.5.0 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:~3.4.0 --sort-packages --no-update
93+
```
8994

90-
</div>
95+
1. Remove unused packages.
9196

92-
#### Specify additional packages
97+
If you are upgrading from 2.2.x to 2.3.x, remove unused packages with the following command. It is not needed if you are upgrading from 2.3.x.
98+
99+
```bash
100+
composer remove --dev sjparkinson/static-review fabpot/php-cs-fixer --no-update
101+
```
102+
103+
### Example - Minor release
104+
105+
Minor releases contain new features, quality fixes, and security fixes. Use Composer to specify a minor release. For example, to specify the {{site.data.var.ee}} 2.3.0 metapackage:
93106

94107
```bash
95-
composer require --dev allure-framework/allure-phpunit:~1.2.0 friendsofphp/php-cs-fixer:~2.14.0 lusitanian/oauth:~0.8.10 magento/magento-coding-standard:~3.0.0 magento/magento2-functional-testing-framework:2.4.3 pdepend/pdepend:2.5.2 phpmd/phpmd:@stable phpunit/phpunit:~6.5.0 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:~3.4.0 --sort-packages --no-update
108+
composer require magento/product-community-edition=2.3.0 --no-update
96109
```
97110

98-
#### Remove unused packages
111+
### Example - Quality patch
99112

100-
If you are upgrading from 2.2.x to 2.3.x, remove unused packages with the following command.
101-
It is not needed if you are upgrading from 2.3.x.
113+
Quality patches primarily contain functional _and_ security fixes. However, they can also sometimes contain new, backward-compatible features. Use Composer to download a quality patch. For example, to specify the {{site.data.var.ee}} 2.3.3 metapackage:
102114

103115
```bash
104-
composer remove --dev sjparkinson/static-review fabpot/php-cs-fixer --no-update
116+
composer require magento/product-community-edition=2.3.3 --no-update
105117
```
106118

107-
### Update `autoload`
119+
### Example - Security patch
120+
121+
Security patches contain security fixes only. They are designed to make the upgrade process faster and easier.
108122

109-
Open `composer.json` and edit the `"autoload": "psr-4"` section to include `"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"`:
123+
Security patches use the Composer naming convention `2.3.2-px`. Use Composer to specify a patch. For example, to download the {{site.data.var.ee}} 2.3.2-p1 metapackage:
110124

111-
```json
112-
"autoload": {
113-
"psr-4": {
114-
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
115-
"Magento\\Setup\\": "setup/src/Magento/Setup/",
116-
"Magento\\": "app/code/Magento/",
117-
"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
118-
},
119-
//...
120-
}
125+
```bash
126+
composer require magento/product-community-edition=2.3.2-p1 --no-update
121127
```
122128

123-
### Modify the Magento updater
129+
## (_Optional)_ Recreate the Magento updater
124130

125-
_Optional_—If the Magento updater is installed, modify it (it is located in the `update/` directory):
131+
If the Magento updater is installed, remove and recreate it. It is located in the `update/` directory.
126132

127133
1. Backup the `update/` directory.
128-
2. Create a Composer project.
134+
135+
1. Create a Composer project.
129136

130137
_{{ ce }} version {{ page.guide_version }}.3:_
131138

@@ -141,7 +148,8 @@ _Optional_—If the Magento updater is installed, modify it (it is located in th
141148

142149
{: .bs-callout-info }
143150
If you need to use a repository that contains non-public packages, such as internal sandboxes, change the URL in `--repository` accordingly.
144-
3. Remove the old `update/` directory and move `temp_dir/update/` to the `update/` directory:
151+
152+
1. Remove the old `update/` directory and move `temp_dir/update/` to the `update/` directory:
145153

146154
```bash
147155
rm -rf update
@@ -155,67 +163,67 @@ _Optional_—If the Magento updater is installed, modify it (it is located in th
155163
rm -rf temp_dir
156164
```
157165

158-
### Update metadata
166+
## Update metadata
159167

160-
Update the `"name"`, `"version"`, and `"description"` fields in the `composer.json` file as needed.
168+
1. Update the `"name"`, `"version"`, and `"description"` fields in the `composer.json` file as needed.
161169

162-
{: .bs-callout-info }
163-
Updating the metadata in `composer.json` file is entirely superficial, not functional.
170+
{: .bs-callout-info }
171+
Updating the metadata in `composer.json` file is entirely superficial, not functional.
164172

165-
### Apply updates
173+
1. Apply updates.
166174

167-
```bash
168-
composer update
169-
```
175+
```bash
176+
composer update
177+
```
170178

171-
### Clean the Magento cache
179+
1. Clean the Magento cache.
172180

173-
After applying an update, you must clean the cache.
181+
```bash
182+
bin/magento cache:clean
183+
```
174184

175-
```bash
176-
bin/magento cache:clean
177-
```
185+
## Clean up
178186

179-
### Manually clear caches and generated content
187+
Manually clear caches and generated content.
180188

181-
Clear the `var/` and `generated/` subdirectories:
189+
1. Clear the `var/` and `generated/` subdirectories:
182190

183-
```bash
184-
rm -rf var/cache/*
185-
```
191+
```bash
192+
rm -rf var/cache/*
193+
```
186194

187-
```bash
188-
rm -rf var/page_cache/*
189-
```
195+
```bash
196+
rm -rf var/page_cache/*
197+
```
190198

191-
```bash
192-
rm -rf generated/code/*
193-
```
199+
```bash
200+
rm -rf generated/code/*
201+
```
194202

195-
{: .bs-callout-info }
196-
If you use a cache storage other than the filesystem, such as Redis or Memcached, you must manually clear the cache there too.
203+
{: .bs-callout-info }
204+
If you use a cache storage other than the filesystem, such as Redis or Memcached, you must manually clear the cache there too.
197205

198-
### Update the database schema and data
206+
1. Update the database schema and data.
199207

200-
```bash
201-
bin/magento setup:upgrade
202-
```
208+
```bash
209+
bin/magento setup:upgrade
210+
```
203211

204-
### Disable maintenance mode
212+
1. Disable maintenance mode.
205213

206-
```bash
207-
bin/magento maintenance:disable
208-
```
214+
```bash
215+
bin/magento maintenance:disable
216+
```
209217

210-
### Restart Varnish
218+
1. _(Optional)_ Restart Varnish.
211219

212-
_Optional_—If you use Varnish for page caching, restart it:
220+
If you use Varnish for page caching, restart it:
213221

214-
```bash
215-
service varnish restart
216-
```
222+
```bash
223+
service varnish restart
224+
```
217225

218-
### Check your work
226+
## Check your work
219227

220228
Open your storefront URL in a web browser to check whether the upgrade was successful. If your upgrade was unsuccessful, your storefront will not load properly.
221229

guides/v2.3/install-gde/composer.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,35 @@ To get the Magento metapackage:
5151

5252
See [troubleshooting][] for help with more errors.
5353

54+
{:.bs-callout-info}
55+
{{site.data.var.ee}} customers can access 2.3.x patches two weeks before the General Availability (GA) date.
56+
57+
### Example - Minor release
58+
59+
Minor releases contain new features, quality fixes, and security fixes. Use Composer to specify a minor release. For example, to specify the {{site.data.var.ee}} 2.3.0 metapackage:
60+
61+
```bash
62+
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.3.0 <install-directory-name>
63+
```
64+
65+
### Example - Quality patch
66+
67+
Quality patches primarily contain functional _and_ security fixes. However, they can also sometimes contain new, backward-compatible features. Use Composer to download a quality patch. For example, to specify the {{site.data.var.ee}} 2.3.3 metapackage:
68+
69+
```bash
70+
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.3.3 <install-directory-name>
71+
```
72+
73+
### Example - Security patch
74+
75+
Security patches contain security fixes only. They are designed to make the upgrade process faster and easier.
76+
77+
Security patches use the Composer naming convention `2.3.2-px`. Use Composer to specify a patch. For example, to download the {{site.data.var.ee}} 2.3.2-p1 metapackage:
78+
79+
```bash
80+
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.3.2-p1 <install-directory-name>
81+
```
82+
5483
## Set file permissions
5584

5685
You must set read-write permissions for the web server group before you install the Magento software. This is necessary so that the Setup Wizard and command line can write files to the Magento file system.

0 commit comments

Comments
 (0)