-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update redirects.md #44
base: main
Are you sure you want to change the base?
Conversation
Fit the paths indentation. Add a warning note about the defaults being changed breaking ece-tools URLs scenario.
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.
@dannystaple Please sign the Adobe CLA.
Co-authored-by: Jared Hoover <98363870+jhadobe@users.noreply.github.com>
I have now signed the CLA. |
>[!NOTE] | ||
> | ||
>If the `http://{default}/:` type is not set to `upstream`, `ece-tools` can encounter issues configuring URL routes in `core_config_data` tables. | ||
> | ||
>```yaml | ||
>http://{default}/: | ||
> type: upstream | ||
>``` | ||
|
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.
@dannystaple I've been unable to confirm this internally. If you revert this change, I can merge the updates to the indentation.
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.
This change is relating to how the routing table ends up in the steps called by https://github.com/magento/ece-tools/blob/2002.1/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls.php.
In UrlManager, https://github.com/magento/ece-tools/blob/2002.1/src/Util/UrlManager.php, it tries to read the initial URL as primary. However, https://github.com/magento/ece-tools/blob/2002.1/src/Util/UrlManager.php#L84 will skip a URL if it's type is not upstream.
If the primary is not this default, then the execute function in https://github.com/magento/ece-tools/blob/2002.1/src/Step/Deploy/InstallUpdate/ConfigUpdate/Urls/Database.php will potentially find no URL's, or try to work with a subdomain, and then does not call updateUrl in line 81 correctly. You would then not have environment URLs in the database after a deployment (unless you updated them previously).
Purpose of this pull request
This pull request (PR):
Affected pages
Links to Commerce code