This repository contains the Bedrock file structure and Sage theme for the Code Corps WordPress blog.
Bedrock is a modern WordPress stack that helps you get started with the best development tools and project structure.
Sage is the best WordPress starter theme with a modern front-end development workflow.
Much of the philosophy behind Bedrock is inspired by the Twelve-Factor App methodology including the WordPress specific version.
- 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)
Use Trellis for additional features:
- Easy development environments with Vagrant
- Easy server provisioning with Ansible (Ubuntu 14.04, PHP 5.6 or HHVM, MariaDB)
- One-command deploys
- PHP >= 5.5
- Composer - Install
Clone this repository along with Trellis into the following directory structure:
blog.codecorps.org/ # → Root folder for this project
├── trellis-public/ # → Your clone of the public Trellis repository
├── trellis/ # → Your clone of the private Trellis repository (acccess limited; private for security)
└── site/ # → Your clone of this repository, a Bedrock-based WordPress site
└── web/
├── wp/ # → WordPress core (don't touch!)
└── app/ # → WordPress content directory (themes, plugins, etc.)
└── web/themes/codecorps # → Code Corps theme directory (where most blog dev work will happen)
- Create the main project directory (if not already created):
mkdir blog.codecorps.org
cd blog.codecorps.org
- Clone Trellis:
git clone git@github.com:code-corps/blog.codecorps.org-trellis-public.git trellis-public
- Clone the site:
git clone git@github.com:code-corps/blog.codecorps.org-site.git site
- Install the Ansible Galaxy roles:
cd trellis-public && ansible-galaxy install -r requirements.yml
- Run locally inside
trellis-public
. Read those docs for more,
Windows user? Read the Trellis Windows docs for slightly different installation instructions. Please modify them to match these docs. VirtualBox is known to have poor performance in Windows — use VMware or see some possible solutions.
Bedrock documentation is available at https://roots.io/bedrock/docs/.
Sage documentation is available at https://roots.io/sage/docs/.
Contributions are welcome from everyone. We have contributing guidelines to help you get started.
Join the Code Corps community at https://codecorps.org/code-corps/code-corps