Bedrock will be getting a major version update 💥 We'll be making changes to the directory structure and configuration system to better align with modern PHP practices.
These directory changes mean we'll need to update Trellis to accommodate the new structure. It will also mean we'll need to update any other tools that interact with Bedrock sites, such as Valet/Herd drivers, deployment scripts, docs/tutorials, etc.
Directory structure
Configuration
Bedrock v1:
├── composer.json
├── config/
│ ├── application.php # Primary wp-config
│ └── environments
│ ├── development.php
│ ├── staging.php
│ └── production.php
├── vendor/ # Composer dependencies
└── web/ # Public document root
├── app/ # WordPress content dir
│ ├── mu-plugins/
│ ├── plugins/
│ ├── themes/
│ └── uploads/
├── index.php
├── wp-config.php
└── wp/ # WordPress core
Bedrock v2:
├── config.php # Primary wp-config
├── composer.json
├── vendor/ # Composer dependencies
└── public/ # Public document root (renamed from web/)
├── index.php
├── wp-config.php # Required wp-config.php from WordPress, loads our wp-config.php from the project root
├── mu-plugins/
├── plugins/
├── themes/
├── uploads/
└── wp/ # WordPress core
Bedrock will be getting a major version update 💥 We'll be making changes to the directory structure and configuration system to better align with modern PHP practices.
These directory changes mean we'll need to update Trellis to accommodate the new structure. It will also mean we'll need to update any other tools that interact with Bedrock sites, such as Valet/Herd drivers, deployment scripts, docs/tutorials, etc.
Directory structure
web/directory topublic/to better align with modern PHP practicesapp/directory (wp-content) the public web root 🔨Configuration
WP_ENVin favor of WordPress core'sWP_ENVIRONMENT_TYPEBedrock v1:
Bedrock v2: