Thanks to visit codestin.com
Credit goes to github.com

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

Add FORCE_UPDATE_URLS deploy variable doc #4516

Merged
merged 3 commits into from
May 14, 2019
Merged

Conversation

meker12
Copy link
Contributor

@meker12 meker12 commented May 14, 2019

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.

@meker12 meker12 added 2.x Internal Dev Differentiates work between community and Magento staff Technical Updates to the code or processes that alter the technical content of the doc labels May 14, 2019
@meker12 meker12 self-assigned this May 14, 2019
@meker12 meker12 requested a review from hguthrie May 14, 2019 15:32

```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`
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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).

@meker12 meker12 requested review from hguthrie and oshmyheliuk May 14, 2019 15:33
@@ -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.
Copy link
Contributor

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.
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.

@meker12 meker12 merged commit aced8c2 into Cloud-2002.0.19 May 14, 2019
@ghost
Copy link

ghost commented May 14, 2019

Hi @meker12, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@meker12 meker12 deleted the mae-MAGECLOUD-3602 branch May 14, 2019 20:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.x Internal Dev Differentiates work between community and Magento staff Technical Updates to the code or processes that alter the technical content of the doc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants