This is a skeleton repo for using wordpress with composer along with grunt and bower for UI assets. Includes configs for dev, stage, and production environments as well as some default configurations.
You'll need to install composer. See these awesome docs to get started.
Once composer is installed follow these steps:
composer install
- Setup a vhost that points to the html directory.
- Copy the config/config.dev.sample.php to config.dev.php and edit the settings.
- Hit your dev environment and install wordpress.
You can have unlimited environment configs. To use this feature you'll need to add an environment variable to the vhost that matches the config file. Example:
<VirtualHost *:80>
...
SetEnv WP_ENV production
...
</VirtualHost>
config/config.production.php
This will also expose WP_ENV to any plugin that needs it.