A Vagrant base project for building Wordpress themes
Go to file
John Bintz 53670f35ff fix mysql deploy, does a local vagrant config really need a crazy mysql password 2012-01-24 14:52:37 -05:00
cookbooks fix mysql deploy, does a local vagrant config really need a crazy mysql password 2012-01-24 14:52:37 -05:00
features look sir, cucumbers 2012-01-20 09:46:29 -05:00
plugins allow htaccess override 2011-12-17 15:04:36 +01:00
themes allow htaccess override 2011-12-17 15:04:36 +01:00
wordpress allow htaccess override 2011-12-17 15:04:36 +01:00
.gitignore look sir, cucumbers 2012-01-20 09:46:29 -05:00
Gemfile look sir, cucumbers 2012-01-20 09:46:29 -05:00
Rakefile modernizations 2011-12-17 12:21:49 +01:00
Readme.md tweak readme 2012-01-20 10:03:14 -05:00
Vagrantfile fix mysql deploy, does a local vagrant config really need a crazy mysql password 2012-01-24 14:52:37 -05:00

Readme.md

Vagrant Wordpress Theming

This is a Vagrant setup for creating Wordpress themes. Uses Chef Solo recipes for provisioning. The recipes are copied from my fork of those by Opscode, which allows for their use with Chef Solo and for a blank MySQL root password.

NEVER WORRY ABOUT SETTING UP MYSQL AND PHP ON YOUR COMPUTER EVER AGAIN!

Requirements

To get started

$ git clone git://github.com/paulcarvill/vagrant-wordpress.git <working directory>
$ cd <working directory>
$ bundle install
$ bundle exec vagrant up
$ open http://localhost:8080

You'll need to install Wordpress (i.e. set up an admin user, name the Wordpress blog etc.). Then copy a base theme (like the totally stripped-down Starkers) into the theme directory, select Appearance > Themes in the Wordpress dashboard, choose the new theme and get to work!

Your Ubuntu/PHP/MySQL box exists as a virtual machine. The website running on the virtual machine is pointing back at the theme directory on your local machine. So you can do your work, keep it in version control, and destroy the virtual machine once you're finished using:

$ bundle exec vagrant destroy

Eat your veggies and get strong

You also get a basic configuration of Cucumber set up to make sure your initial install of WordPress is sane. Just run bundle exec cucumber. You'll be using capybara-webkit to run your tests in a virtual browser. Write those acceptance tests for your theme/plugin!