-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Component: ConfigIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report
Description
Based on the technical details for the upcoming Magento 2.2 version it seems like you can generate static content without access to the DB, however it still seems to be trying to connect to the DB in my case.
Preconditions
- Magento 2.2 RC1.1 (3cfa32b)
- PHP 7.0.19
Steps to reproduce
- Clone latest
developbranch - Install Magento
- Run
php bin/magento app:config:dump - Rename
env.phpfile toenv2.php - Run
php bin/magento setup:static-content:deploy -l en_US -t Magento/blank -f
Expected result
- Static content should be deployed for the blank theme under en_US locale.
Actual result
Deploy using quick strategy
[DomainException]
Default website is not defined
setup:static-content:deploy [-f|--force] [-s|--strategy [STRATEGY]] [-a|--area [AREA]] [--exclude-area [EXCLUDE-AREA]] [-t|--theme [THEME]] [--exclude-theme [EXCLUDE-THEME]] [-l|--language [LANGUAGE]] [--exclude-language [EXCLUDE-LANGUAGE]] [-j|--jobs [JOBS]] [--symlink-locale] [--content-version CONTENT-VERSION] [--refresh-content-version-only] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [--] [<languages>]...
If you rename the env.php file back it works fine. Am I missing something here?
I think I need to set the settings that Magento is trying to get from the DB in the env.php file of my build machine so it doesn't need to query the database but I'm not sure how.
Metadata
Metadata
Assignees
Labels
Component: ConfigIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report