layout | group | subgroup | title | menu_title | menu_order | menu_node | version | github_link |
---|---|---|---|---|---|---|---|---|
default |
cloud |
03_ReleaseNotes |
Magento Enterprise Cloud Edition 2.1.3 and 2.0.11 Release Notes |
Magento Enterprise Cloud Edition 2.1.3 and 2.0.11 Release Notes |
50 |
2.1 |
cloud/release-notes/CloudReleaseNotes2.1.3.md |
These Release Notes provide up-to-date information about changes, additions, and fixes to the Magento Enterprise Cloud Edition for versions 2.1.3 and 2.0.11.
Before you [upgrade]({{ page.baseurl }}cloud/howtos/upgrade-magento.html) to version 2.1.3 or 2.0.11, you must add a rule to the web
section of your .magento.app.yaml
file. You must make the change in your local system, push it to your [integration server]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-int), then, after upgrading, push the changes to [staging]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-stage) and [production]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-prod).
{% collapsible To get started: %}
{% include cloud/cli-get-started.md %}
{% endcollapsible %}
{% collapsible To update .magento.app.yaml
: %}
-
Open
<Magento root dir>/.magento.app.yaml
in a text editor. -
Locate the
web:
section, and the/static
location in it. -
Add the following to the
rules:
clause:^/static/version\d+/(?<resource>.*)$: passthru: "/static/$resource"
The
/static
location should look like this after the change:"/static": root: "pub/static" allow: true scripts: false passthru: "/front-static.php" rules: ^/static/version\d+/(?<resource>.*)$: passthru: "/static/$resource"
-
Save your changes to
.magento.app.yaml
and exit the text editor. -
You may now [upgrade]({{ page.baseurl }}cloud/howtos/upgrade-magento.html) to version 2.1.3 or 2.0.11.
{% endcollapsible %}
This section discusses how to update your [integration]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-int) system to replace Solr with Elasticsearch. Currently, all Magento Enterprise Cloud Edition upgrades to 2.1.3 must perform these tasks.
Elasticsearch is supported by Magento Cloud Enterprise Edition 2.1.x only.
If you installed Magento Enterprise Cloud Edition 2.1.3 for the first time, you don't need to do this because Elasticsearch is already the default search engine.
To use Elasticsearch on a [staging]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-stage) or [production]({{ page.baseurl }}cloud/discover-arch.html#cloud-arch-prod) system, open a [Support ticket]({{ page.baseurl }}cloud/get-help.html) and request Elasticsearch 1.4.
To use Elasticsearch, you must perform all the tasks discussed in this section.
{% collapsible To get started: %}
{% include cloud/cli-get-started.md %}
{% endcollapsible %}
{% collapsible To update .magento.app.yaml: %}
-
Open
.magento.app.yaml
in a text editor.It's located in your Magento Enterprise Cloud Edition project root directory.
-
In the
relationships:
section, deletesolr: "solr:solr"
if it exists. -
Add
elasticsearch: "elasticsearch:elasticsearch"
A sample follows:
relationships: database: "mysql:mysql" elasticsearch: "elasticsearch:elasticsearch" redis: "redis:redis"
-
Save your changes to
.magento.app.yaml
and exit the text editor.
{% endcollapsible %}
{% collapsible To update .magento/services.yaml: %}
-
Open
.magento/services.yaml
in a text editor. -
Remove the entire
solr:
section. -
Add a new
elasticsearch:
section with the following contents:elasticsearch: type: elasticsearch:1.4 disk: 1024
-
Save your changes to
.magento/services.yaml
and exit the text editor.
{% endcollapsible %}
{% collapsible To push the changes: %}
-
Add, commit, and push the changes:
git add -A && git commit -m "Add Elasticsearch" git push origin <branch name>
-
Wait for the project to deploy.
{% endcollapsible %}
This section discusses how to get connection information for Elasticsearch so you can configure the Magento application to use it as your search engine.
{% collapsible To get Elasticsearch connection information: %}
-
Open an SSH tunnel to your integration environment.
magento-cloud environment:ssh
-
Enter the following command to get Elasticsearch connection details:
echo $MAGENTO_CLOUD_RELATIONSHIPS | base64 -d | json_pp
A sample follows:
"elasticsearch" : [ { "host" : "elasticsearch.internal", "ip" : "250.0.97.96", "scheme" : "http", "port" : "9200" } ],
-
Write down the connection information.
-
Enter
exit
to close the SSH tunnel. -
Log in to the Magento Admin as an administrator.
To view the Magento Admin connection details, enter the following commands:
magento-cloud environment:url magento-cloud variable:list
These two commands provide you with the environment's base URL and Admin login information, respectively.
An example follows:
magento-cloud environment:url Enter a number to choose a URL [0] https://mybranch-vyaprfq-dyrupdn6bw82h.us.magentosite.cloud/ [1] http://mybranch-vyaprfq-dyrupdn6bw82h.us.magentosite.cloud/ > 1 http://mybranch-vyaprfq-dyrupdn6bw82h.us.magentosite.cloud/ magento-cloud variable:list +----------------+---------------+-----------+------+ | ID | Value | Inherited | JSON | +----------------+---------------+-----------+------+ | ADMIN_PASSWORD | admin_A456 | Yes | No | | ADMIN_URL | magento_A8v10 | Yes | No | | ADMIN_USERNAME | meister_x2U8 | Yes | No | +----------------+---------------+-----------+------+
-
Continue with the next section.
{% endcollapsible %}
{% collapsible To configure the Magento application: %}
{% include config/es-elasticsearch-magento.md %}
{% endcollapsible %}
Note the following issue in this release:
The magento setup:install
command (used for deployment) succeeds in either a staging or production system if a Magento database already exists.