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.
- File synchronization required for developer mode—use one of the following:
@@ -121,19 +120,6 @@ Continue launching your Docker environment in the default _production_ mode.
121
120
cp .docker/config.php.dist .docker/config.php
122
121
```
123
122
124
-
Convert custom PHP configuration files to Docker ENV files.
125
-
126
-
```bash
127
-
./vendor/bin/ece-tools docker:config:convert
128
-
```
129
-
130
-
This generates the following Docker ENV files:
131
-
132
-
* `.docker/config.env`
133
-
134
-
{: .bs-callout-info }
135
-
The `{{site.data.var.ct}}` version 2002.0.12 package does not support the `docker:config:convert` command.
136
-
137
123
1. _Optional_: Configure the Docker global variables in the `docker-compose.yml` file. For example, you can [configure Xdebug]({{ page.baseurl }}/cloud/docker/docker-development-debug.html#configure-xdebug).
138
124
139
125
1. Build files to containers and run in the background.
@@ -170,7 +156,8 @@ Continue launching your Docker environment in the default _production_ mode.
170
156
```bash
171
157
docker-compose run deploy magento-command cache:clean
172
158
```
173
-
1. _Optional_: Restart services if the static content does not synchronize with all images after generation on build phase.
159
+
160
+
1. _Optional_: Restart services if the static content does not synchronize with all images after generation on build phase.
174
161
175
162
```bash
176
163
docker-compose restart
@@ -185,52 +172,61 @@ Continue launching your Docker environment in the _developer_ mode. The develope
185
172
{: .bs-callout-info }
186
173
The `{{site.data.var.ct}}` version 2002.0.18 and later supports developer mode.
187
174
188
-
1. Install the `docker-sync` tool using the [Installation instructions](https://docker-sync.readthedocs.io/en/latest/getting-started/installation.html). If you have it installed, continue to the next step.
175
+
1. Install the `docker-sync` tool using the [Installation instructions](https://docker-sync.readthedocs.io/en/latest/getting-started/installation.html).
176
+
Optionally, you can install the `mutagen.io` tool using the [Installation instructions](https://mutagen.io/documentation/installation/).
177
+
If you have it installed, continue to the next step.
189
178
190
179
1. In your local environment, start the Docker configuration generator. You can use the service keys, such as `--php`, to [specify a version](#service-versions).
1. _Optional_: If you have a custom PHP configuration file, copy the default configuration DIST file to your custom configuration file and make any necessary changes.
185
+
By default, the docker-compose configuration uses 'docker-sync' for file synchronization.
186
+
To use 'mutagen.io' for file synchronization, you must run the command with the `--sync-engine=mutagen` option.
Convert custom PHP configuration files to Docker ENV files.
194
+
1. _Optional_: If you have a custom PHP configuration file, copy the default configuration DIST file to your custom configuration file and make any necessary changes.
203
195
204
196
```bash
205
-
./vendor/bin/ece-tools docker:config:convert
197
+
cp .docker/config.php.dist .docker/config.php
206
198
```
207
199
208
-
This generates the following Docker ENV files:
209
-
210
-
* `.docker/config.env`
211
-
212
200
1. _Optional_: Configure the Docker global variables in the `docker-compose.yml` file. For example, you can [enable and configure Xdebug]({{ page.baseurl }}/cloud/docker/docker-development-debug.html).
213
201
214
-
1. Start the file synchronization (use one of the following).
202
+
1. Start the file synchronization.
215
203
216
204
For the `docker-sync` tool:
217
205
218
206
```bash
219
207
docker-sync start
220
208
```
221
209
222
-
For the `mutagen` tool:
210
+
If it is the first installation you should wait a few minutes for synchronization files
223
211
224
-
```bash
225
-
bash ./mutagen.sh
226
-
```
212
+
{: .bs-callout-info}
213
+
If you use `mutagen.io` for file synchronization, skip this step. You start `mutagen.io` _after_ deploying the docker containers.
227
214
228
215
1. Build files to containers and run in the background.
229
216
230
217
```bash
231
218
docker-compose up -d
232
219
```
233
220
221
+
1. Start the file synchronization with `mutagen.io`.
222
+
223
+
```bash
224
+
bash ./mutagen.sh
225
+
```
226
+
227
+
{: .bs-callout-info}
228
+
If you use `docker-sync` for file synchronization, skip this step.
Copy file name to clipboardExpand all lines: guides/v2.2/cloud/env/variables-deploy.md
+47-10Lines changed: 47 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,8 +58,8 @@ stage:
58
58
59
59
Enables or disables cleaning [static content files]({{ page.baseurl }}/config-guide/cli/config-cli-subcommands-static-view.html#config-cli-static-overview) generated during the build or deploy phase. We recommend the default value _true_ in development.
60
60
61
-
- **`true`**—Removes all existing static content before deploying the updated static content.
62
-
- **`false`**—The deployment only overwrites existing static content files if the generated content contains a newer version.
61
+
- **`true`**—Removes all existing static content before deploying the updated static content.
62
+
- **`false`**—The deployment only overwrites existing static content files if the generated content contains a newer version.
63
63
64
64
If you make modifications to static content through a separate process, set the value to _false_.
65
65
@@ -79,9 +79,9 @@ deploy updates to existing files without removing the previous versions. Because
79
79
80
80
Use this environment variable to confirm message queues are running after a deployment.
81
81
82
-
- `cron_run`—A boolean value that enables or disables the `consumers_runner` cron job (default = `false`).
83
-
- `max_messages`—A number specifying the maximum number of messages each consumer must process before terminating (default = `1000`). Although we do not recommend it, you can use `0` to prevent the consumer from terminating.
84
-
- `consumers`—An array of strings specifying which consumer(s) to run. An empty array runs _all_ consumers.
82
+
- `cron_run`—A boolean value that enables or disables the `consumers_runner` cron job (default = `false`).
83
+
- `max_messages`—A number specifying the maximum number of messages each consumer must process before terminating (default = `1000`). Although we do not recommend it, you can use `0` to prevent the consumer from terminating.
84
+
- `consumers`—An array of strings specifying which consumer(s) to run. An empty array runs _all_ consumers.
85
85
86
86
```yaml
87
87
stage:
@@ -101,6 +101,27 @@ By default, the deployment process overwrites all settings in the `env.php` file
101
101
```bash
102
102
./bin/magento queue:consumers:list
103
103
```
104
+
105
+
### `CONSUMERS_WAIT_FOR_MAX_MESSAGES`
106
+
107
+
- **Default**—`false`
108
+
- **Version**—Magento 2.2.0 and later
109
+
110
+
Configure how consumers process messages from the message queue by choosing one of the following options:
111
+
112
+
- `false`—Consumers process available messages in the queue, close the TCP connection, and terminate. Consumers do not wait for additional messages to enter the queue, even if the number of processed messages is less than the `max_messages` value specified in the `CRON_CONSUMERS_RUNNER` deploy variable.
113
+
114
+
- `true`—Consumers continue to process messages from the message queue until reaching the maximum number of messages (`max_messages`) specified in the `CRON_CONSUMERS_RUNNER` deploy variable before closing the TCP connection and terminating the consumer process. If the queue empties before reaching `max_messages`, the consumer waits for more messages to arrive.
115
+
116
+
{: .bs-callout .bs-callout-warning}
117
+
If you use workers to run consumers instead of using a cron job, set this variable to true.
118
+
119
+
```yaml
120
+
stage:
121
+
deploy:
122
+
CONSUMERS_WAIT_FOR_MAX_MESSAGES: false
123
+
```
124
+
104
125
### `CRYPT_KEY`
105
126
106
127
- **Default**—_Not set_
@@ -171,7 +192,7 @@ MariaDB [main]> SHOW TABLES;
171
192
| ece_cache |
172
193
| ece_cache_tag |
173
194
| ece_captcha_log |
174
-
.....
195
+
...
175
196
```
176
197
{: .no-copy}
177
198
@@ -209,8 +230,8 @@ stage:
209
230
210
231
**Known limitations**—
211
232
212
-
- Changing the search engine to any type other than `elasticsuite` causes a deploy failure accompanied by an appropriate validation error
213
-
- Removing the ElasticSearch service causes a deploy failure accompanied by an appropriate validation error
233
+
- Changing the search engine to any type other than `elasticsuite` causes a deploy failure accompanied by an appropriate validation error
234
+
- Removing the ElasticSearch service causes a deploy failure accompanied by an appropriate validation error
214
235
215
236
{:.bs-callout .bs-callout-info}
216
237
Magento does not support the ElasticSuite third-party plugin.
@@ -222,8 +243,8 @@ Magento does not support the ElasticSuite third-party plugin.
222
243
223
244
Enables and disables Google Analytics when deploying to Staging and Integration environments. By default, Google Analytics is true only for the Production environment. Set this value to `true` to enable Google Analytics in the Staging and Integration environments.
224
245
225
-
- **`true`**—Enables Google Analytics on Staging and Integration environments.
226
-
- **`false`**—Disables Google Analytics on Staging and Integration environments.
246
+
- **`true`**—Enables Google Analytics on Staging and Integration environments.
247
+
- **`false`**—Disables Google Analytics on Staging and Integration environments.
227
248
228
249
Add the `ENABLE_GOOGLE_ANALYTICS` environment variable to the `deploy` stage in the `.magento.env.yaml` file:
229
250
@@ -249,6 +270,21 @@ stage:
249
270
FORCE_UPDATE_URLS: true
250
271
```
251
272
273
+
### `LOCK_PROVIDER`
274
+
275
+
- **Default**—`file`
276
+
- **Version**—Magento 2.2.5 and later
277
+
278
+
The lock provider prevents the launch of duplicate cron jobs and cron groups. You must use the `file` lock provider in the Production environment. Starter environments and the Pro Integration environment do not use the [MAGENTO_CLOUD_LOCKS_DIR]({{page.baseurl}}/cloud/env/variables-cloud.html) variable, so `{{site.data.var.ct}}` applies the `db` lock provider automatically.
279
+
280
+
```yaml
281
+
stage:
282
+
deploy:
283
+
LOCK_PROVIDER: "db"
284
+
```
285
+
286
+
See [Configure the lock]({{page.baseurl}}/install-gde/install/cli/install-cli-subcommands-lock.html) in the _Install guide_.
287
+
252
288
### `MYSQL_USE_SLAVE_CONNECTION`
253
289
254
290
- **Default**—`false`
@@ -422,6 +458,7 @@ stage:
422
458
Allows you to increase the maximum expected execution time for static content deployment.
423
459
424
460
By default, Magento Commerce sets the maximum expected execution to 400 seconds, but in some scenarios you might need more time to complete the static content deployment for a Cloud project.
Copy file name to clipboardExpand all lines: guides/v2.2/cloud/project/project-conf-files_services.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,3 +146,18 @@ The current default storage amount per project is 5GB, or 5120MB. You can distri
146
146
```
147
147
148
148
1. Confirm the `service` and `type` from the response. The response provides connection information, such as the IP address and port number.
149
+
150
+
## Service versions
151
+
152
+
The following table lists the services used in {{site.data.var.ece}} and their version compatibility with the [Magento Cloud template](https://github.com/magento/magento-cloud).
153
+
154
+
Service | Magento 2.3 | Magento 2.2
155
+
--------- | ------------- | ------------
156
+
`elasticsearch`| Magento 2.3.1 and later—1.7, 2.4, 5.2, 6.5<br>Magento 2.3.0—1.7, 2.4, 5.2 | Magento versions 2.2.8 and later—1.7, 2.4, 5.2, 6.5<br>Magento 2.2.0 to 2.2.7—1.7, 2.4, 5.2
157
+
`mariadb`| 10.0 to 10.2 | 10.0 to 10.2
158
+
`nginx`| 1.9 | 1.9
159
+
`node`| 6, 8, 10, 11 | 6, 8, 10, 11
160
+
`php`| Magento 2.3.3 and later—7.1, 7.2, 7.3<br>Magento 2.3.0 to 2.3.2—7.1, 7.2 | Magento 2.2.10 and later—7.1, 7.2<br>Magento 2.2.5 to 2.2.9—7.0, 7.1<br>Magento 2.2.4 and earlier—7.0.2, 7.0.4, ~7.0.6, 7.1
161
+
`rabbitmq`| 3.5, 3.7 | 3.5
162
+
`redis`| 3.2, 4.0, 5.0 | 3.2, 4.0, 5.0
163
+
`varnish`| Magento 2.3.3 and later—4.0, 5.0, 6.2<br>Magento 2.3.0 to 2.3.2—4.0, 5.0 | 4.0, 5.0
0 commit comments