Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions guides/v2.1/cloud/env/variables-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,19 @@ stage:
{:.bs-callout .bs-callout-info}
The {{ site.data.var.ece }} deploy process always enables Google Analytics on Production environments.

### `FORCE_UPDATE_URLS`

- **Default**—`true`
- **Version**—Magento 2.1.4 and later

On deployment to Pro and Starter staging and production environments, this variable replaces Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{ page.baseurl}}/cloud/env/variables-cloud.html) variable. Use this setting to override the default behavior of the [UPDATE_URLS](#update_urls) variable which is ignored when deploying to staging and production environments.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
On deployment to Pro and Starter staging and production environments, this variable replaces Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{ page.baseurl}}/cloud/env/variables-cloud.html) variable. Use this setting to override the default behavior of the [UPDATE_URLS](#update_urls) variable which is ignored when deploying to staging and production environments.
On deployment to Pro or Starter staging and production environments, this variable replaces Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{ page.baseurl}}/cloud/env/variables-cloud.html) variable. Use this setting to override the default behavior of the [UPDATE_URLS](#update_urls) variable which is ignored when deploying to staging and production environments.


```yaml
stage:
deploy:
FORCE_UPDATE_URLS: true
```

### `GENERATED_CODE_SYMLINK`

- **Default**—`true`
Expand Down Expand Up @@ -424,16 +437,17 @@ stage:
- **Default**—`true`
- **Version**—Magento 2.1.4 and later

On deployment, replace Magento base URLs in the database with project URLs. This is useful for local development, where base URLs are set up for your local environment. When you deploy to a Cloud environment, we change the URLs so you can access your storefront and Magento Admin using project URLs.
On deployment, replace Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{ page.baseurl }}/cloud/env/variables-cloud.html) variable. This is useful for local development, where base URLs are set up for your local environment.
When you deploy to a Cloud environment, we change the URLs so you can access your storefront and Magento Admin using project URLs.

If you need to update URLs when deploying to Pro or Starter staging and production environments, use the [`FORCE_UPDATE_URLS`](#force_update_urls) variable.

```yaml
stage:
deploy:
UPDATE_URLS: false
```

You should set this variable to `false` _only_ in Staging or Production environments, where the base URLs cannot change. For Pro, we already set this to `false` for you.

### `VERBOSE_COMMANDS`

- **Default**—_Not set_
Expand Down
3 changes: 3 additions & 0 deletions guides/v2.1/cloud/release-notes/cloud-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ The release notes include:

## v2002.0.19

- {:.new}**Environment variable updates**—

- {:.new}<!-- MAGECLOUD-3602-->Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content.

## v2002.0.18

Expand Down
19 changes: 16 additions & 3 deletions guides/v2.2/cloud/env/variables-deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,19 @@ stage:
{:.bs-callout .bs-callout-info}
The {{ site.data.var.ece }} deploy process always enables Google Analytics on Production environments.

### `FORCE_UPDATE_URLS`

- **Default**—`true`
- **Version**—Magento 2.1.4 and later

On deployment to Pro or Starter staging and production environments, this variable replaces Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{page.baseurl}}/cloud/env/variables-cloud.html) variable. Use this setting to override the default behavior of the [UPDATE_URLS](#update_urls) deploy variable which is ignored when deploying to staging or production environments.

```yaml
stage:
deploy:
FORCE_UPDATE_URLS: true
```

### `MYSQL_USE_SLAVE_CONNECTION`

- **Default**—`false`
Expand Down Expand Up @@ -512,16 +525,16 @@ stage:
- **Default**—`true`
- **Version**—Magento 2.1.4 and later

On deployment, replace Magento base URLs in the database with project URLs. This is useful for local development, where base URLs are set up for your local environment. When you deploy to a Cloud environment, we change the URLs so you can access your storefront and Magento Admin using project URLs.
On deployment, replace Magento base URLs in the database with the project URLs specified by the [`MAGENTO_CLOUD_ROUTES`]({{page.baseurl}}/cloud/env/variables-cloud.html) variable. This is useful for local development, where base URLs are set up for your local environment. When you deploy to a Cloud environment, we change the URLs so you can access your storefront and Magento Admin using project URLs.

If you need to update URLs when deploying to Pro or Starter staging and production environments, use the [`FORCE_UPDATE_URLS`](#force_update_urls) variable.

```yaml
stage:
deploy:
UPDATE_URLS: false
```

You should set this variable to `false` _only_ in Staging or Production environments, where the base URLs cannot change. For Pro, we already set this to `false` for you.

### `VERBOSE_COMMANDS`

- **Default**—_Not set_
Expand Down
2 changes: 2 additions & 0 deletions guides/v2.2/cloud/release-notes/cloud-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ The release notes include:

## v2002.0.19

- {:.new}**Environment variable updates**—

- {:.new}<!-- MAGECLOUD-3602-->Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content.

## v2002.0.18

Expand Down
4 changes: 4 additions & 0 deletions guides/v2.3/cloud/release-notes/cloud-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ The release notes include:

## v2002.0.19

- {:.new}**Environment variable updates**—

- {:.new}<!-- MAGECLOUD-3026-->Added the **FORCE_UPDATE_URLS** deploy variable to update Magento base URLs when deploying to Pro and Starter production and staging environments. See the definition in the [deploy variables]({{ page.baseurl }}/cloud/env/variables-deploy.html#force_update_urls) content.


## v2002.0.18

Expand Down