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.
* MAGECLOUD-2114 fix YAML formatting
* fix typos
* Adding other YAML files
In further conversation, decided to add other significant YAML samples in the check.
* fix formatting, spacing issues
You can use the following instructions for service setup on {{site.data.var.ece}} Pro Integration environments and Starter environments including Production `master`. You must submit a support ticket to configure the service on Pro Production and Staging environments. See [Services]({{ page.baseurl }}/cloud/project/project-conf-files_services.html).
1
+
You can use the following instructions for service setup on {{site.data.var.ece}} Pro Integration environments and Starter environments, including `master` branch. You must submit a support ticket to configure the service on Pro Production and Staging environments. See [Services]({{ page.baseurl }}/cloud/project/project-conf-files_services.html).
Copy file name to clipboardExpand all lines: guides/v2.1/cloud/env/environment-vars_magento.md
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,25 @@ functional_areas:
6
6
- Configuration
7
7
---
8
8
9
-
Users that have administrative access to the {{site.data.var.ece}} project can use the
10
-
following project environment variables to override the configuration settings
11
-
for the administrative user account to access the Admin UI. See [Change the Magento ADMIN variables]({{ page.baseurl }}/cloud/before/before-setup-env-2_clone.html#change-the-magento-admin-variables).
9
+
Users that have administrative access to the {{site.data.var.ece}} project can use the following project environment variables to override the configuration settings for the administrative user account to access the Admin UI. See [Change the Magento ADMIN variables]({{ page.baseurl }}/cloud/before/before-setup-env-2_clone.html#change-the-magento-admin-variables).
12
10
13
11
## Admin credentials
14
12
15
13
Use the ADMIN variables in the following table to override credentials for the Magento Admin user during installation.
16
14
17
15
If you want to change the values after installation, connect to your environment using ssh and use the the Magento CLI [`admin:user` command]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-admin.html) to create or edit the Magento Admin user credentials.
|`ADMIN_USERNAME`| License Owner email address | A username for the administrative user with the ability to create other users, including administrative users.|
22
20
|`ADMIN_EMAIL`|| Email address for the administrative user. This address is used to send password reset notifications.|
23
21
|`ADMIN_PASSWORD`|| Password for the administrative user. When the project is created a random password is generated and an email is sent to the {{ site.data.var.ece }} License Owner. During project creation, the License Owner should have already changed the password. You might need to contact the License Owner for the updated password.|
24
22
| `ADMIN_LOCALE` | `en_US` | The default locale used by the Magento Admin.
25
23
26
-
27
-
28
24
## Admin URL
29
25
30
26
Use the following environment variable to secure access to your Magento Admin UI. If specified, this value overrides the default URL during installation.
31
27
32
28
`ADMIN_URL`—The relative URL to access the Magento Admin UI. The default URL is `/admin`. For security reasons, Magento recommends that you change the default to a unique, custom Admin URL that is not easy to guess.
33
29
34
-
If you need to change the Admin URL after installation, connect to your environment using ssh and use the Magento CLI [`magento setup:config`]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-deployment.html) command to change the URL.
30
+
If you need to change the Admin URL after installation, connect to your environment using SSH and use the Magento CLI [`magento setup:config`]({{ page.baseurl }}/install-gde/install/cli/install-cli-subcommands-deployment.html) command to change the URL.
Copy file name to clipboardExpand all lines: guides/v2.1/cloud/env/variables-global.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@ stage:
13
13
global:
14
14
GLOBAL_VARIABLE_NAME: value
15
15
```
16
+
16
17
{% include cloud/customize-build-deploy.md %}
17
18
18
19
### `MIN_LOGGING_LEVEL`
@@ -24,8 +25,8 @@ Overrides the minimum logging level for all output streams without making change
24
25
25
26
```yaml
26
27
stage:
27
-
global:
28
-
MIN_LOGGING_LEVEL: debug
28
+
global:
29
+
MIN_LOGGING_LEVEL: debug
29
30
```
30
31
31
32
### `SCD_ON_DEMAND`
@@ -45,13 +46,14 @@ stage:
45
46
46
47
The `SCD_ON_DEMAND` variable skips the SCD and the `STATIC_CONTENT_SYMLINK` in both phases (build and deploy), clears the `pub/static` and `var/view_preprocessed` folders, and writes the following to the `app/etc/env.php` file:
47
48
48
-
```php
49
+
```php?start_inline=1
49
50
return array(
50
51
...
51
52
'static_content_on_demand_in_production' => 1,
52
53
...
53
54
);
54
55
```
56
+
{: .no-copy}
55
57
56
58
### `SKIP_HTML_MINIFICATION`
57
59
@@ -87,7 +89,6 @@ Use the `X_FRAME_CONFIGURATION` variable to change the [`X-Frame-Options`]({{ pa
87
89
88
90
Add the `X_FRAME_CONFIGURATION` environment variable to the `global` stage in the `.magento.env.yaml` file:
Copy file name to clipboardExpand all lines: guides/v2.1/cloud/env/variables-post-deploy.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,8 @@ Customize the list of pages used to preload the cache in the `post_deploy` stage
26
26
stage:
27
27
post-deploy:
28
28
WARM_UP_PAGES:
29
-
- "index.php"
30
-
- "index.php/customer/account/create"
29
+
- "index.php"
30
+
- "index.php/customer/account/create"
31
31
```
32
32
33
33
You must configure the post-deploy hook. See [hooks section of the `.magento.app.yaml` file]({{ page.baseurl }}/cloud/project/project-conf-files_magento-app.html#hooks).
Copy file name to clipboardExpand all lines: guides/v2.1/cloud/project/project-conf-files_magento-app.md
+40-20Lines changed: 40 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ The `.magento.app.yaml` has many default values, see [a sample `.magento.app.yam
21
21
Use the following properties to build your application configuration file. The `name`, `type`, `disk`, and one `web` or `worker` block is required.
22
22
23
23
### `name`
24
+
24
25
{{site.data.var.ee}} supports multiple applications in a project, so you need a unique name that identifies the application in the project. You must use lower case alphanumeric characters, such as `a` to `z` and `0` to `9` for the name.
25
26
26
27
The name is used in the [`routes.yaml`]({{ page.baseurl }}/cloud/project/project-conf-files_routes.html) file to define the HTTP upstream (by default, `php:http`). For example, if the value of `name` is `app`, you must use `app:http` in the upstream field. You can also use this name in multi-application relationships.
@@ -29,6 +30,7 @@ The name is used in the [`routes.yaml`]({{ page.baseurl }}/cloud/project/project
29
30
Do not change the name of an application after it has been deployed.
30
31
31
32
### `type` and `build`
33
+
32
34
The `type` and `build` properties provide information about the base container image to build and run the project.
33
35
34
36
The supported `type` language is {% glossarytooltip bf703ab1-ca4b-48f9-b2b7-16a81fd46e02 %}PHP{% endglossarytooltip %}. Specify the PHP version as follows:
@@ -45,6 +47,7 @@ build:
45
47
```
46
48
47
49
### `access`
50
+
48
51
The _access_ property indicates a minimum user role level that is allowed SSH access to the environments. The available user roles are:
49
52
50
53
- `admin`—Can change settings and execute actions in the environment. Also has _contributor_ and _viewer_ rights.
@@ -59,9 +62,10 @@ access:
59
62
```
60
63
61
64
### `relationships`
65
+
62
66
Defines the service mapping in your application.
63
67
64
-
The left-hand side is the name of the relationship as it will be exposed to the application in the `MAGENTO_CLOUD_RELATIONSHIPS` environment variable. The right-hand side is in the form `<servicename>:<endpointname>`, where `<servicename>` comes from `.magento/services.yaml` and `<endpointname>` should be the same as the value of `type` declared in that same file.
68
+
The left-hand side is the name of the relationship as it will be exposed to the application in the `MAGENTO_CLOUD_RELATIONSHIPS` environment variable. The right-hand side is in the form `<service-name>:<endpoint-name>`, where `<service-name>` comes from `.magento/services.yaml` and `<endpoint-name>` should be the same as the value of `type` declared in that same file.
65
69
66
70
Example of valid options are:
67
71
@@ -75,6 +79,7 @@ search: "searchengine:solr"
75
79
See [Services]({{page.baseurl}}/cloud/project/project-conf-files_services.html) for a full list of currently supported service types and endpoints.
76
80
77
81
### `web`
82
+
78
83
The `web` property defines how your application is exposed to the web (in HTTP). It determines how the web application serves content— from the front-controller script to a non-static request to an `index.php` file on the root. We support any directory structure so the static file can be in a sub directory, and the `index.php` file can be further down.
79
84
80
85
You can specify the following attributes for the `web` property:
@@ -141,6 +146,7 @@ web:
141
146
```
142
147
143
148
### `disk`
149
+
144
150
Defines the persistent disk size of the application in MB.
145
151
146
152
```yaml
@@ -151,6 +157,7 @@ disk: 2048
151
157
The minimal recommended disk size is 256MB. If you see the error `UserError: Error building the project: Disk size may not be smaller than 128MB`, increase the size to 256MB.
152
158
153
159
### `mounts`
160
+
154
161
An object whose keys are paths relative to the root of the application. The mount is a writable area on the disk for files. The following is a default list of mounts configured in the `magento.app.yaml` file using the `volume_id[/subpath]` syntax:
155
162
156
163
```yaml
@@ -177,6 +184,7 @@ Important: The subpath portion of the mount is the unique identifier of the file
177
184
You can make the mount web accessible by adding it to the [`web`](#web) block of locations.
178
185
179
186
### `dependencies`
187
+
180
188
Enables you to specify dependencies that your application might need during the build process.
181
189
182
190
{{site.data.var.ee}} supports dependencies on the following
@@ -198,10 +206,13 @@ nodejs:
198
206
```
199
207
200
208
### `hooks`
209
+
201
210
Use the `hooks` section to run shell commands during the build, deploy, and post-deploy phases:
202
211
203
212
- **`build`**—Execute commands _before_ packaging your application. Services, such as the database or Redis, are not available at this time since the application has not been deployed yet. You must add custom commands _before_ the default `php ./vendor/bin/ece-tools` command so that custom-generated content continues to the deployment phase.
213
+
204
214
- **`deploy`**—Execute commands _after_ packaging and deploying your application. You can access other services at this point. Since the default `php ./vendor/bin/ece-tools` command copies the `app/etc` directory to the correct location, you must add custom commands _after_ the deploy command to prevent custom commands from failing.
215
+
205
216
- **`post_deploy`**—Execute commands _after_ deploying your application and _after_ the container begins accepting connections. The `post_deploy` hook clears the cache and preloads (warms) the cache. You can customize the list of pages using the `WARM_UP_PAGES` variable in the [Post-deploy stage]({{ site.baseurl }}/guides/v2.1/cloud/env/variables-post-deploy.html). It is available only for Pro projects that contain [Staging and Production environments in the Project Web UI]({{ page.baseurl }}/cloud/trouble/pro-env-management.html) and for Starter projects. Although not required, this works in tandem with the `SCD_ON_DEMAND` environment variable.
206
217
207
218
Add CLI commands under the `build`, `deploy`, or `post_deploy` sections _before_ the `ece-tools` command:
@@ -242,9 +253,9 @@ The commands run from the application (`/app`) directory. You can use the `cd` c
242
253
```yaml
243
254
dependencies:
244
255
ruby:
245
-
sass: "3.4.7"
256
+
sass: "3.4.7"
246
257
nodejs:
247
-
grunt-cli: "~0.1.13"
258
+
grunt-cli: "~0.1.13"
248
259
249
260
hooks:
250
261
build: |
@@ -258,6 +269,7 @@ hooks:
258
269
You must compile Sass files using `grunt` before static content deployment, which happens during the build. Place the `grunt` command before the `build` command.
259
270
260
271
### `crons`
272
+
261
273
Describes processes that are triggered on a schedule. We recommend you run `cron` as the [Magento file system owner]({{page.baseurl}}/cloud/before/before-workspace-file-sys-owner.html). Do _not_ run cron as `root` or as the web server user.
262
274
263
275
`crons` support the following:
@@ -291,10 +303,10 @@ The following environment variables are included in `.magento.app.yaml`. These a
@@ -396,10 +412,14 @@ Configuring PHP settings improperly can cause issues. We recommend only advanced
396
412
397
413
For example, if you need to increase the PHP memory limit:
398
414
399
-
memory_limit = 756M
415
+
```bash
416
+
memory_limit = 756M
417
+
```
400
418
401
419
For a list of recommended PHP configuration settings, see [Required PHP settings]({{ page.baseurl }}/install-gde/prereq/php-settings.html).
402
420
403
421
After pushing your file, you can check that the custom PHP configuration has been added to your environment by [creating an SSH tunnel]({{ page.baseurl }}/cloud/env/environments-start.html#env-start-tunn) to your environment and entering:
0 commit comments