Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
content
wordpress @ 540fc8f
.gitignore
.gitmodules
README.md
index.php
wp-config.php
wp-dev-config.php
wp-local-config.php
wp-prod-config.php

README.md

WordPress Boilerplate

This is a simple boilerplate for a WordPress site. WordPress is added as a submodule and fetched from the official WordPress repository. The wp-content folder has been moved outside the WordPress folder and has been renamed to content.

WordPress configuration

The wp-config.php file makes an assumption about your server environment. It assumes that there is a environment variable set called WP_ENV. Depending on if the variable is set to development or production it will include either wp-dev-config.php or wp-prod-config.php.

To add WP_ENV to your server environment you have to edit your virtual host configuration.

<VirtualHost *:80>
  ServerName localhost
  DocumentRoot /var/websites/site

  SetEnv WP_ENV development
</VirtualHost>

If the config doesn't find the WP_ENV variable it will default to the production configuration. But all of this can of course be easily changed if necessary.

Something went wrong with that request. Please try again.