Skip to content

Commit 747d719

Browse files
author
Jonathan Visser
committed
Add solution for "The default website isn't defined. Set the website and try again." in Magento deployments
1 parent 15b12f7 commit 747d719

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/hypernode-deploy/applications/config-for-magento-2.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ return $configuration;
1717

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

20+
## Known issues
21+
22+
### Error: The default website isn't defined. Set the website and try again.
23+
24+
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).
25+
26+
You can fix this by running the following command and then commiting the result to your codebase:
27+
28+
```
29+
$ php bin/magento app:config:dump scopes themes
30+
Done. Config types dumped: scopes, themes
31+
```
32+
2033
## Advanced
2134

2235
However, for advanced configurations you can override most steps and variables set my Hypernode Deploy:

0 commit comments

Comments
 (0)