-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
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
- Rename
web/directory topublic/to better align with modern PHP practices - Make the
app/directory (wp-content) the public web root π¨
Configuration
- Adopt wp-config v2
- New fluent configuration API
- Simplified environment handling
- Drop
WP_ENVin favor of WordPress core'sWP_ENVIRONMENT_TYPE
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
Reactions are currently unavailable