-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add FORCE_UPDATE_URLS deploy variable doc #4516
Conversation
|
||
```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. | ||
### `FORCE_UPDATE_URLS` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these variables are in alphabetical order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I know that -- I thought this one is so closely related to the UPDATE_URLS one that it made sense to put them together. It's a trade off. I can move to the correct alphabetical location if you think that's more important than proximity to related variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in reference material, proximity is not something I consider. I don't think that I would go to the U if I were looking for F. Although, my instinct is CMD+F in this case, the right navigation grabs the alphabetic attention. so that would be the anomaly.
@@ -424,15 +424,29 @@ 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 the project URLs specified in the `MAGENTO_CLOUD_ROUTES` variable. This is useful for local development, where base URLs are set up for your local environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe provide a link to the variable definition.
On deployment, replace Magento base URLs in the database the project URLs specified in the `MAGENTO_CLOUD_ROUTES` 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. | ||
|
||
To update URLs when deploying to staging or production environments, use the `FORCE_UPDATE_URLS` variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To update URLs when deploying to staging or production environments, use the `FORCE_UPDATE_URLS` variable. | |
If you need to update URLs when deploying to the Staging or Production environments, use the [`FORCE_UPDATE_URLS` variable](#force_update_urls). |
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` 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. | ||
|
||
To update URLs when deploying to staging or production environments, use the `FORCE_UPDATE_URLS` variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To update URLs when deploying to staging or production environments, use the `FORCE_UPDATE_URLS` variable. | |
If you need to update URLs when deploying to the Staging or Production environments, use the [`FORCE_UPDATE_URLS` variable](#force_update_urls). |
@@ -424,15 +424,29 @@ 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 the project URLs specified in the `MAGENTO_CLOUD_ROUTES` variable. This is useful for local development, where base URLs are set up for your local environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replace Magento base URLs in the database the project URLs specified in the
I'm not sure but maybe with
is missed.
replace Magento base URLs in the database with the project URLs specified in the
- **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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
Hi @meker12, thank you for your contribution! |
Purpose of this pull request
Added documentation for the FORCE_UPDATE_URLS deploy variable to update URLs when deploying Magento Commerce Cloud projects to staging and production environments.
Affected DevDocs pages
Links to Magento source code
https://github.com/magento/ece-tools/blob/develop/dist/.magento.env.yaml#L189
whatsnew
Added the FORCE_UPDATE_URLS deploy variable to update Magento base URLs when deploying Magento Commerce Cloud projects to production and staging environments.