Skip to content

Commit 4587bd9

Browse files
authored
Merge pull request #391 from ByteInternet/Add-solution-for-The-default-website-isn't-defined.-Set-the-website-and-try-again.-in-Magento-deployments
Add solution for "The default website isn't defined. Set the website and try again." in Magento deployments
2 parents 2b1cd1f + 4153c37 commit 4587bd9

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+
## Common 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+
```console
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)