This is a modern WordPress stack that helps you get started with the best development tools and project structure. This stack is heavily based on Bedrock.
- 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)
- PHP >= 5.4
- Composer - Install
Follow the WP-Ansible Installation Instructions and just clone this repo as the site folder.
- Clone the git repo -
git clone https://github.com/drewrawitz/wp-stack.git - Run
composer install - Copy
.env.exampleto.envand 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)
- Add theme(s) in
web/app/themesas you would for a normal WordPress site. - Set your site vhost document root to
/path/to/site/web/(/path/to/site/current/web/if using deploys) - Access WP admin at
http://example.com/wp/wp-admin
For more detailed documentation, go to the Bedrock GitHub Page or the Bedrock Wiki.