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
MAGECLOUD-3866: Warm up functionality does not work if no store with 'default' code #560
Conversation
@@ -154,7 +154,7 @@ public function getBaseUrl(): string | |||
{ | |||
if ($this->baseUrl === null) { | |||
try { | |||
$process = $this->shell->execute('php bin/magento config:show:store-url default'); | |||
$process = $this->shell->execute('php bin/magento config:show:default-url'); | |||
|
|||
$this->baseUrl = $process->getOutput(); | |||
} catch (ShellException $e) { |
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.
Message in exception need to change to avoid confusion.
e.g. "Can't fetch base URL using command config:show:default-url. Instead URL from routes will be used.
Waiting for magento/magento-cloud-components#5 to be merged |
# Conflicts: # src/Test/Unit/Util/UrlManagerTest.php # src/Util/UrlManager.php
composer.json
Outdated
"magento/magento-cloud-components": "^1.0", | ||
|
||
|
||
"magento/framework": "*" |
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.
Remove excess lines
QA approved |
84578de
Hi @oshmyheliuk, thank you for your contribution! |
Description
Fixed an issue when store with code 'default' doesn't exist or different store assigned as the default.
Fixed Issues (if relevant)
https://magento2.atlassian.net/browse/MAGECLOUD-3866
Related PR
magento/magento-cloud-components#5
Manual testing scenarios
https://jira.corp.magento.com/browse/MAGECLOUD-85
Contribution checklist