You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.3/cloud/project/project-upgrade.md
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,6 @@ You can upgrade the core {{site.data.var.ee}} code base to version 2.3. It is be
20
20
21
21
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.
22
22
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
-
25
23
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).
@@ -36,96 +36,103 @@ Complete the following prerequisites to prepare your environment before starting
36
36
{: .bs-callout-info }
37
37
Optionally, you can create a [custom maintenance mode page].
38
38
39
-
## Upgrade using the command line {#upgrade-cli-upgr}
40
-
41
39
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.
42
40
43
-
### Backup `composer.json`
41
+
## Manage packages
44
42
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 forhelp 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.
46
45
47
-
### Manage packages
46
+
1. Backup the `composer.json` file.
48
47
49
-
Specify needed packages and remove any unneeded ones before proceeding with the upgrade.
48
+
```bash
49
+
cp composer.json composer.json.bak
50
+
```
50
51
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.
52
53
53
-
_Optional_—If you are upgrading from {{ ce }} to {{ ee }}, deactivate the {{ ce }} update:
1. Indicate the Magento packages, both the edition (`community` or `enterprise`) and the version (`{{ page.guide_version }}.3`), that you want to upgrade to.
58
59
59
-
#### Specify Magento packages
60
+
_{{ ce }}_:
60
61
61
-
Indicate the Magento packages, both the edition (`community` or `enterprise`) and the version (`{{ page.guide_version }}.3`), that you want to upgrade to.
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:
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:
Security patches contain security fixes only. They are designed to make the upgrade process faster and easier.
108
122
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:
_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.
126
132
127
133
1. Backup the `update/` directory.
128
-
2. Create a Composer project.
134
+
135
+
1. Create a Composer project.
129
136
130
137
_{{ ce }} version {{ page.guide_version }}.3:_
131
138
@@ -141,7 +148,8 @@ _Optional_—If the Magento updater is installed, modify it (it is located in th
141
148
142
149
{: .bs-callout-info }
143
150
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:
145
153
146
154
```bash
147
155
rm -rf update
@@ -155,67 +163,67 @@ _Optional_—If the Magento updater is installed, modify it (it is located in th
155
163
rm -rf temp_dir
156
164
```
157
165
158
-
### Update metadata
166
+
## Update metadata
159
167
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.
161
169
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.
164
172
165
-
### Apply updates
173
+
1. Apply updates.
166
174
167
-
```bash
168
-
composer update
169
-
```
175
+
```bash
176
+
composer update
177
+
```
170
178
171
-
### Clean the Magento cache
179
+
1. Clean the Magento cache.
172
180
173
-
After applying an update, you must clean the cache.
181
+
```bash
182
+
bin/magento cache:clean
183
+
```
174
184
175
-
```bash
176
-
bin/magento cache:clean
177
-
```
185
+
## Clean up
178
186
179
-
### Manually clear caches and generated content
187
+
Manually clear caches and generated content.
180
188
181
-
Clear the `var/` and `generated/` subdirectories:
189
+
1. Clear the `var/` and `generated/` subdirectories:
182
190
183
-
```bash
184
-
rm -rf var/cache/*
185
-
```
191
+
```bash
192
+
rm -rf var/cache/*
193
+
```
186
194
187
-
```bash
188
-
rm -rf var/page_cache/*
189
-
```
195
+
```bash
196
+
rm -rf var/page_cache/*
197
+
```
190
198
191
-
```bash
192
-
rm -rf generated/code/*
193
-
```
199
+
```bash
200
+
rm -rf generated/code/*
201
+
```
194
202
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.
197
205
198
-
### Update the database schema and data
206
+
1. Update the database schema and data.
199
207
200
-
```bash
201
-
bin/magento setup:upgrade
202
-
```
208
+
```bash
209
+
bin/magento setup:upgrade
210
+
```
203
211
204
-
### Disable maintenance mode
212
+
1. Disable maintenance mode.
205
213
206
-
```bash
207
-
bin/magento maintenance:disable
208
-
```
214
+
```bash
215
+
bin/magento maintenance:disable
216
+
```
209
217
210
-
### Restart Varnish
218
+
1. _(Optional)_ Restart Varnish.
211
219
212
-
_Optional_—If you use Varnish for page caching, restart it:
220
+
If you use Varnish for page caching, restart it:
213
221
214
-
```bash
215
-
service varnish restart
216
-
```
222
+
```bash
223
+
service varnish restart
224
+
```
217
225
218
-
### Check your work
226
+
## Check your work
219
227
220
228
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.
Copy file name to clipboardExpand all lines: guides/v2.3/install-gde/composer.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,35 @@ To get the Magento metapackage:
51
51
52
52
See [troubleshooting][] forhelp with more errors.
53
53
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:
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:
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:
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