From 747d719ebe661c30dfbe9812de389c66acae1e39 Mon Sep 17 00:00:00 2001 From: Jonathan Visser Date: Tue, 12 Aug 2025 09:06:34 +0200 Subject: [PATCH 1/4] Add solution for "The default website isn't defined. Set the website and try again." in Magento deployments --- .../applications/config-for-magento-2.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/hypernode-deploy/applications/config-for-magento-2.md b/docs/hypernode-deploy/applications/config-for-magento-2.md index 495e1369..d53b657e 100644 --- a/docs/hypernode-deploy/applications/config-for-magento-2.md +++ b/docs/hypernode-deploy/applications/config-for-magento-2.md @@ -17,6 +17,19 @@ return $configuration; By using the Magento2 ApplicationTemplate, a bunch of default configuration gets set in Hypernode Deploy, and should work out-of-the-box for most magento 2 stores. +## Known issues + +### Error: The default website isn't defined. Set the website and try again. + +When this error is thrown, please assure the app/etc/config.php has the keys 'scopes' and 'themes'. This is needed for the deployment software to be aware of what themes are installed without a database present (during pipeline run). + +You can fix this by running the following command and then commiting the result to your codebase: + +``` +$ php bin/magento app:config:dump scopes themes +Done. Config types dumped: scopes, themes +``` + ## Advanced However, for advanced configurations you can override most steps and variables set my Hypernode Deploy: From d99a9c105567df69b4ec0d5048798163d49f7980 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 12 Aug 2025 15:30:51 +0200 Subject: [PATCH 2/4] Update docs/hypernode-deploy/applications/config-for-magento-2.md Co-authored-by: Timon de Groot --- docs/hypernode-deploy/applications/config-for-magento-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hypernode-deploy/applications/config-for-magento-2.md b/docs/hypernode-deploy/applications/config-for-magento-2.md index d53b657e..4350f97c 100644 --- a/docs/hypernode-deploy/applications/config-for-magento-2.md +++ b/docs/hypernode-deploy/applications/config-for-magento-2.md @@ -21,7 +21,7 @@ By using the Magento2 ApplicationTemplate, a bunch of default configuration gets ### Error: The default website isn't defined. Set the website and try again. -When this error is thrown, please assure the app/etc/config.php has the keys 'scopes' and 'themes'. This is needed for the deployment software to be aware of what themes are installed without a database present (during pipeline run). +When this error is thrown, please assure the `app/etc/config.php` has the keys `scopes` and `themes`. This is needed for the deployment software to be aware of what themes are installed without a database present (during pipeline run). You can fix this by running the following command and then commiting the result to your codebase: From 733ca4804b809f53f11bcd11e6142f4e28f89b33 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 12 Aug 2025 15:30:57 +0200 Subject: [PATCH 3/4] Update docs/hypernode-deploy/applications/config-for-magento-2.md Co-authored-by: Timon de Groot --- docs/hypernode-deploy/applications/config-for-magento-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hypernode-deploy/applications/config-for-magento-2.md b/docs/hypernode-deploy/applications/config-for-magento-2.md index 4350f97c..7e28868f 100644 --- a/docs/hypernode-deploy/applications/config-for-magento-2.md +++ b/docs/hypernode-deploy/applications/config-for-magento-2.md @@ -25,7 +25,7 @@ When this error is thrown, please assure the `app/etc/config.php` has the keys ` You can fix this by running the following command and then commiting the result to your codebase: -``` +```console $ php bin/magento app:config:dump scopes themes Done. Config types dumped: scopes, themes ``` From d9660ae12b301cb954d6366b902a82a7ceecf5e5 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 24 Sep 2025 15:35:05 +0200 Subject: [PATCH 4/4] Update docs/hypernode-deploy/applications/config-for-magento-2.md --- docs/hypernode-deploy/applications/config-for-magento-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/hypernode-deploy/applications/config-for-magento-2.md b/docs/hypernode-deploy/applications/config-for-magento-2.md index 7e28868f..fa9a3c5b 100644 --- a/docs/hypernode-deploy/applications/config-for-magento-2.md +++ b/docs/hypernode-deploy/applications/config-for-magento-2.md @@ -17,7 +17,7 @@ return $configuration; By using the Magento2 ApplicationTemplate, a bunch of default configuration gets set in Hypernode Deploy, and should work out-of-the-box for most magento 2 stores. -## Known issues +## Common issues ### Error: The default website isn't defined. Set the website and try again.