- Better folder structure
- Dependency management with Composer
- Easy WordPress configuration with environment specific files
- Environment variables with Dotenv
- Autoloader for mu-plugins (use regular plugins as mu-plugins)
- Enhanced security (separated web root and secure passwords with wp-password-bcrypt)
- Copy
.env.example
to.env
and update environment variables:
DB_NAME
- Database nameDB_USER
- Database userDB_PASSWORD
- Database passwordDB_HOST
- Database hostWP_ENV
- Set to environment (development
,staging
,production
)WP_HOME
- Full URL to WordPress home (http://example.com)WP_SITEURL
- Full URL to WordPress including subdirectory (http://example.com/wp)AUTH_KEY
,SECURE_AUTH_KEY
,LOGGED_IN_KEY
,NONCE_KEY
,AUTH_SALT
,SECURE_AUTH_SALT
,LOGGED_IN_SALT
,NONCE_SALT
Or, you can cut and paste from the [Roots WordPress Salt Generator][roots-wp-salt].
- run
composer install
in root dir. - Navigate to
app/themes/pressed/
and runyarn
to install dev dependencies and build theme assets. - Access WP admin at
http://example.com/wp/wp-admin
The wp-config.php
should define WP_ENV
as dev
for local development. Production checks should be flagged by this constant not being defined for fail safe reason. ie <?php if ( !defined('WP_ENV') ): ?>