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

Commit 7835b0d

Browse files
authored
Merge branch 'master' into update_errors
2 parents fc78081 + 6621f85 commit 7835b0d

File tree

10 files changed

+113
-42
lines changed

10 files changed

+113
-42
lines changed

src/_data/toc/page-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ pages:
9090
url: /page-builder/docs/content-types/create/add-icon.html
9191
versionless: true
9292

93-
- label: Workflow tips
94-
url: /page-builder/docs/content-types/create/Troubleshooting.html
93+
- label: Troubleshooting
94+
url: /page-builder/docs/content-types/create/troubleshooting.html
9595
versionless: true
9696

9797
- label: 'Customize'

src/_data/whats-new.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ description: This page contains recent changes that we think you'd like to know
44
We exclude from this list proofreading, spelling checks, and all minor updates.
55
link: "/whats-new.html"
66
thread: "/whatsnew-feed.xml"
7-
updated: Mon Nov 22 15:39:00 2021
7+
updated: Mon Nov 29 15:40:15 2021
88
entries:
9-
- description: Added the 'Reindexing in parallel mode` section to the [Manage the indexers](https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-index.html)
9+
- description: Added the 'Reindexing in parallel mode` section to the [Manage the
10+
indexers](https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-index.html)
1011
topic.
1112
versions: 2.3.x, 2.4.x
1213
type: Major Update
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{:.bs-callout-warning}
2+
Updating the environment configuration triggers a redeployment, which takes your site offline until deployment completes. For Production environments, Adobe recommends completing this work during off-peak hours to avoid service disruptions. See [Working with variables]({{site.baseurl}}/cloud/env/working-with-variables.html).

src/cloud/project/new-relic.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ To connect a Cloud environment to New Relic, add the New Relic license key to th
106106
107107
For Starter environments, enable the New Relic integration by adding the New Relic license key to the environment configuration. We recommend adding the key to the Staging and Production (master) environments and one other environment of your choice. Only the New Relic license key is required for configuration. You can find information about additional configuration options in the [New Relic reporting] topic in the _{{site.data.var.ee}} User Guide_.
108108
109-
{:.bs-callout-warning}
110-
Updating the environment configuration triggers a redeployment, which takes your site offline until deployment completes. For Production environments, we recommend completing this work during off-peak hours to avoid service disruptions. See [Working with variables].
109+
{% include cloud/note-env-config-redeploy-warning.md%}
111110
112111
**Prerequisites:**
113112
@@ -393,4 +392,3 @@ See [Alerts concepts and workflow] in the New Relic documentation for more detai
393392
[Update the account owner]: https://docs.newrelic.com/docs/accounts/accounts/roles-permissions/change-account-owner
394393
[Update policies or conditions]: https://docs.newrelic.com/docs/alerts/new-relic-alerts/configuring-alert-policies/update-or-disable-policies-conditions
395394
[View your license key]: https://docs.newrelic.com/docs/accounts/install-new-relic/account-setup/license-key#finding
396-
[Working with variables]: {{site.baseurl}}/cloud/env/working-with-variables.html

src/cloud/project/project-webint-basic.md

Lines changed: 103 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ functional_areas:
1313
The {{site.data.var.ece}} [Project Web Interface](https://account.magento.com/customer/account/login/) enables you to do the following for all Starter and Pro environments:
1414

1515
- [Access projects](#project-access)
16+
- [Configure environment settings](#configure-environment-settings)
1617
- [Add users and manage access]({{ site.baseurl }}/cloud/project/user-admin.html)
1718
- [Manage Git branches]({{ site.baseurl }}/cloud/project/project-webint-branch.html)
1819

@@ -56,76 +57,145 @@ You can set the following configuration options for each environment:
5657
</tr>
5758
<tr>
5859
<td>Outgoing emails</td>
59-
<td>Setting to <strong>On</strong> means that code in your environment can send and receive e-mails (for example, using PHP <code>mail()</code> function. </td>
60+
<td>Setting this option <strong>On</strong> enables support for sending emails from the environment using the SMTP protocol.</td>
6061
</tr>
6162
<tr>
6263
<td>HTTP access control</td>
63-
<td>Setting to <strong>On</strong> enables you to configure security for the project's Web Interface using a login and also IP address access control.</td>
64+
<td>Setting this option <strong>On</strong> enables you to configure security for the Project Web Interface using a login and also IP address access control.</td>
6465
</tr>
6566
</table>
6667

6768
### Configure emails for testing {#email}
6869

69-
One of these environment variables enables or disables outgoing emails for the environment. If you wanted to test email notifications for the environment, you need to set this option On.
70+
By default, email support is **disabled** on Staging and Production environments. You must enable email support on an environment to send emails including Welcome, password reset, and two-factor authentication emails for Cloud project users.
7071

71-
1. [Access your project](#project-access) and select a specific environment.
72-
1. Select the Settings tab.
73-
1. For the **Outgoing emails** option, select the toggle to On.
72+
You can manage email support for each Cloud project environment from the Project Web Interface or from the command line.
73+
74+
- On master and integration branches, use the *Outgoing emails* toggle in the Project Web interface to enable or disable email support.
75+
76+
- On Production and Staging environments or other environments where the *Outgoing emails toggle* is not available in the Project Web Interface, you can check the current configuration from the Project Web Interface, but you can only change the configuration from the command line using the [Cloud CLI for Commerce]({{ site.baseurl }}/cloud/reference/cli-ref-topic.html) `environment:info` command to set the `enable_smtp` property.
77+
78+
Enabling SMTP updates the `MAGENTO_CLOUD_SMTP_HOST` environment variable with the IP address of the SMTP host for sending mail.
79+
80+
{% include cloud/note-env-config-redeploy-warning.md%}
81+
82+
{:.procedure}
83+
To manage email support from the Project Web Interface:
84+
85+
1. [Access your project](#project-access) and select the environment to configure.
86+
87+
1. Select **Configure environment**, and then select the **Variables** tab.
88+
89+
1. To enable or disable outgoing emails, toggle *Outgoing emails* **On** or **Off**.
90+
91+
![Set outgoing emails]({{ site.baseurl }}/common/images/cloud/cloud-env-outgoing-emails-config.png){:width="650px"}
92+
93+
After you change the setting, the environment builds and deploys with the new configuration.
94+
95+
{:.procedure}
96+
To manage email support from the command line:
97+
98+
1. Check the current email configuration in the Project Web Interface.
99+
100+
![Check outgoing email configuration]({{ site.baseurl }}/common/images/cloud/cloud-env-outgoing-emails-current-setting.png){:width="650px"}
101+
102+
1. If needed, change the email configuration.
103+
104+
1. From the command line, change to the directory where you [cloned your Cloud project]({{ site.baseurl }}/cloud/before/before-setup-env-2_clone.html#clone-the-project).
105+
106+
1. Log in to the project.
107+
108+
```bash
109+
magento-cloud login
110+
```
111+
112+
1. If you do not have the project ID and environment ID for the environment, use the following commands to get the values.
113+
114+
```bash
115+
magento-cloud project:list
116+
```
117+
118+
```bash
119+
magento-cloud environments -p <project-id>
120+
```
121+
122+
1. Change the email support configuration by setting the `enable_smtp` environment variable to `true` or `false`.
123+
124+
```bash
125+
magento-cloud environment:info --refresh -p <project-id> -e <environment-id> enable_smtp true
126+
```
127+
128+
Wait for the environment to build and deploy.
129+
130+
1. Verify that email is working:
131+
132+
- Use SSH to connect to your environment.
133+
134+
- Check that the `MAGENTO_CLOUD_SMTP_HOST` value is set.
74135

75-
![Set outgoing emails]({{ site.baseurl }}/common/images/cloud/cloud_project-conf-env.png)
136+
```bash
137+
printenv MAGENTO_CLOUD_SMTP_HOST
138+
```
76139

77-
Configure your email notifications, services, and more as needed through the Admin and test emails.
140+
- Send a test email to your email address or another address you can check.
78141

79-
## Set environment and project variables {#project-conf-env-var}
142+
```bash
143+
php -r 'mail("mail@example.com", "test message", "just testing", "From: tester@example.com");'
144+
```
80145

81-
You can set project wide and environment specific variables through the Project Web Interface. Variables can be either text or JSON format. For more information, see [Environment variables]({{ site.baseurl }}/cloud/env/variables-intro.html).
146+
## Set project and environment variables {#project-conf-env-var}
82147

83-
For an example of variables, we walk you through creating Admin variables through Onboarding and project creation tasks. You may want to add _environment variables_ for sensitive data like payment method information. _Project variables_ are set across all branches and environments.
148+
You can set project wide and environment specific variables through the Project Web Interface. Variables can be either text or JSON format. _Project variables_ are set across all branches and environments. Use _environment variables_ for sensitive data like payment method information. For more information, see [Environment variables]({{ site.baseurl }}/cloud/env/variables-intro.html).
84149

85150
To view or edit environment variables, you must have at minimum the project reader role with [environment admin]({{ site.baseurl }}/cloud/project/user-admin.html) privileges.
86151

87152
{% include cloud/wings-variables.md %}
88153

89-
### Environment variable {#env}
154+
### Project variables {#project}
90155

91-
To set environment specific variables in the Project Web Interface:
156+
To set project variables in the Project Web Interface:
157+
158+
1. [Access your project](#project-access).
159+
1. Select the Settings icon, and then select the **Variables** tab.
160+
161+
![Configure project variables]({{ site.baseurl }}/common/images/cloud/cloud-config-project-variables.png){:width="650px"}
92162

93-
1. [Access your project](#project-access) and select a specific environment.
94-
1. Select the Variables tab.
95163
1. Click **Add Variable**.
96-
1. In the **Name** field, enter a variable name. For example, to set the Admin default account password, enter `ADMIN_PASSWORD`.
164+
1. In the **Name** field, enter a variable name. For example, to set the Admin email for the default account, enter `ADMIN_EMAIL`.
97165
1. In the **Value** field, enter the value for the variable. For example, enter a valid email address accessible for reset email notifications.
98166

99-
![Set environment variables]({{ site.baseurl }}/common/images/cloud/cloud_env-var.png)
167+
![Set project variables]({{ site.baseurl }}/common/images/cloud/cloud_project_variable.png)
100168

101-
1. As needed, select options for **JSON value**, **Enabled**, **Inheritable by child environments** and **Sensitive**. If you do not have Super User access, you may only see the JSON value option.
169+
1. As needed, select options for **JSON value**, **Visible during build**, and **Visible during runtime**. If you do not have Super User access, you may only see the JSON value option.
102170
1. Click **Add Variable**. After you add the variable, the environment will deploy. Wait until deployment completes before more edits.
103171

104-
{:.bs-callout-warning}
105-
If you are attempting to [override configuration settings]({{ site.baseurl }}
106-
), you must prepend `env:` to the variable name. For example:
107-
![Environment variable example]({{ site.baseurl }}/common/images/cloud/cloud_env_var_example.png)
172+
### Environment variables {#env}
108173

109-
### Project variable {#project}
110-
111-
To set project variables in the Project Web Interface:
174+
To set environment specific variables in the Project Web Interface:
112175

113176
1. [Access your project](#project-access) and select a specific environment.
114-
1. Select the Variables tab.
177+
1. Select **Configure environment**.
178+
1. Select the **Variables** tab.
115179
1. Click **Add Variable**.
116-
1. In the **Name** field, enter a variable name. For example, to set the Admin email for the default account, enter `ADMIN_EMAIL`.
180+
1. In the **Name** field, enter a variable name. For example, to set the Admin default account password, enter `ADMIN_PASSWORD`.
117181
1. In the **Value** field, enter the value for the variable. For example, enter a valid email address accessible for reset email notifications.
118182

119-
![Set project variables]({{ site.baseurl }}/common/images/cloud/cloud_project_variable.png)
183+
![Set environment variables]({{ site.baseurl }}/common/images/cloud/cloud_env-var.png){:width="650px"}
120184

121-
1. As needed, select options for **JSON value**, **Visible during build**, and **Visible during runtime**. If you do not have Super User access, you may only see the JSON value option.
185+
1. As needed, select options for **JSON value**, **Enabled**, **Inheritable by child environments** and **Sensitive**. If you do not have Super User access, you may only see the JSON value option.
122186
1. Click **Add Variable**. After you add the variable, the environment will deploy. Wait until deployment completes before more edits.
123187

188+
{:.bs-callout-warning}
189+
If you are attempting to [override configuration settings]({{ site.baseurl }}
190+
), you must prepend `env:` to the variable name. For example:
191+
![Environment variable example]({{ site.baseurl }}/common/images/cloud/cloud_env_var_example.png)
192+
124193
## Configure routes {#project-conf-env-route}
125194

126195
Routes allow you to set redirects or upstream settings for applications for your specific environment. For full details on routes, see [routes.yaml]({{ site.baseurl }}/cloud/project/routes.html). These routes (or URLs) are used to access your storefront.
127196

128197
1. [Access your project](#project-access) and select a specific environment.
198+
1. Select **Configure environment**.
129199
1. Select the Routes tab.
130200
1. Select **Add Route**.
131201
1. Enter a URL. You can use `{default}` in the URL, which is a placeholder for the default domain.
@@ -141,7 +211,7 @@ Routes allow you to set redirects or upstream settings for applications for your
141211
1. To configure a Redirect, enter a URL to **Redirect to**. You can use `{default}` in the URL, which is a placeholder for the default domain.
142212
1. Click **Add Route** to save. The setting is saved and deployed to the environment.
143213

144-
![Configure a route]({{ site.baseurl }}/common/images/cloud/cloud_routes.png)
214+
![Configure a route]({{ site.baseurl }}/common/images/cloud/cloud_routes.png){:width="650px"}
145215

146216
## View environment history {#project-conf-hist}
147217

@@ -152,19 +222,19 @@ An environment's history includes:
152222
- Syncs and merges
153223
- Code pushes
154224
155-
To view the history for an environment, log in to your project and select the environment. The page displays a general history of actions completed on the page. For a detailed list of completed actions during build and deployment, we recommend reviewing logs directly on the servers. See [View logs]({{ site.baseurl }}/cloud/project/log-locations.html).
225+
To view the history for an environment, log in to your project and select the environment. The page displays a general history of actions completed on the page. For a detailed list of completed actions during build and deployment, Adobe recommends reviewing logs directly on the servers. See [View logs]({{ site.baseurl }}/cloud/project/log-locations.html).
156226
157227
The following figure shows a sample history.
158228
159-
![Sample environment history]({{ site.baseurl }}/common/images/cloud/cloud_environment-history.png)
229+
![Sample environment history]({{ site.baseurl }}/common/images/cloud/cloud_environment-history.png){:width="800px"}
160230
161231
The history shows, from oldest to newest:
162232
163233
- Environment branched from `FeatureX`
164234
- Environment synced with the parent
165235
- Environment snapshot created
166236
167-
We recommend [creating a snapshot]({{ site.baseurl }}/cloud/project/project-webint-snap.html) before you make any code changes.
237+
Adobe recommends [creating a snapshot]({{ site.baseurl }}/cloud/project/project-webint-snap.html) before you make any code changes.
168238
169239
- Environment variable added
170240
- Environment snapshot created
Loading
Loading
Loading

src/guides/v2.3/get-started/bk-get-started-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ functional_areas:
1414

1515
The Magento web [API](https://glossary.magento.com/api) framework provides integrators and developers the means to use web services that communicate with the Magento system. Key features include:
1616

17-
* Support for both [REST]({{ page.baseurl }}/rest/bk-rest.html) (Representational State Transfer) and [SOAP]({{ page.baseurl }}/soap/bk-soap.html) (Simple Object Access Protocol). In Magento 2, the [web API](https://glossary.magento.com/web-api) coverage is the same for both REST and SOAP.
17+
* Support for [GraphQL]({{page.baseurl}}/graphql/index.html), [REST]({{ page.baseurl }}/rest/bk-rest.html) (Representational State Transfer) and [SOAP]({{ page.baseurl }}/soap/bk-soap.html) (Simple Object Access Protocol). In Magento 2, the [web API](https://glossary.magento.com/web-api) coverage is the same for both REST and SOAP.
1818

1919
* Three types of [authentication]({{ page.baseurl }}/get-started/authentication/gs-authentication.html):
2020
* Third-party applications authenticate with [OAuth 1.0a]({{ page.baseurl }}/get-started/authentication/gs-authentication-oauth.html).

src/guides/v2.4/extension-dev-guide/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ define the `match()` function in this class to use your own route matching logic
7171

7272
If you need route configuration data, use the Route [`Config`] class.
7373

74-
To add your custom router to the list of routers for the `FrontController`, add the following entry in your module's `di.xml` file:
74+
To add your custom router to the list of routers for the `FrontController`, add the following entry in your module's `frontend/di.xml` file:
7575

7676
```xml
7777
<type name="Magento\Framework\App\RouterList">

0 commit comments

Comments
 (0)