From 19b279bb8f230198279f6036d567a31493ee26f4 Mon Sep 17 00:00:00 2001 From: Paul Carvill Date: Sat, 17 Sep 2011 14:32:29 +0100 Subject: [PATCH 1/3] The mysql package required on Ubuntu platforms is 'mysql' rather than 'ruby-mysql' so i've changed the conditional to account for that --- cookbooks/mysql/recipes/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/mysql/recipes/client.rb b/cookbooks/mysql/recipes/client.rb index 3e1969a..a7c9eff 100644 --- a/cookbooks/mysql/recipes/client.rb +++ b/cookbooks/mysql/recipes/client.rb @@ -32,7 +32,7 @@ package "mysql-devel" do action :install end -if platform?(%w{ debian ubuntu redhat centos fedora suse }) +if platform?(%w{ debian redhat centos fedora suse }) package "mysql-ruby" do package_name value_for_platform( From 9aeee64c8d35a37554bae3aca4167b400b5123c7 Mon Sep 17 00:00:00 2001 From: Paul Carvill Date: Sat, 17 Sep 2011 14:53:41 +0100 Subject: [PATCH 2/3] added some more info about Vagrant --- Readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index e5ddb40..286a0d9 100644 --- a/Readme.md +++ b/Readme.md @@ -5,13 +5,17 @@ This is a [Vagrant][vagrant] setup for creating Wordpress themes. Uses [my fork][cookbooks-developish] of [those by Opscode][cookbooks-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 MAC EVER AGAIN! + ## Requirements ## * [Vagrant][vagrant] + $ gem install vagrant + ## To get started ## - $ git clone git://github.com/developish/vagrant-wordpress.git + $ git clone git://github.com/paulcarvill/vagrant-wordpress.git $ cd vagrant-wordpress $ vagrant up $ open http://localhost:8080 @@ -19,6 +23,13 @@ allows for their use with Chef Solo and for a blank MySQL root password. Copy a base theme (like [Starkers][starkers]) into the theme directory, choose it in the Wordpress dashboard, 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: + + $ vagrant destroy + [vagrant]:http://vagrantup.com [chef]:http://wiki.opscode.com/display/chef/Chef+Solo [cookbooks-developish]:https://github.com/opscode/cookbooks From 6c4974b717ad9f30afad34dc1b2ca858e3d3b3ff Mon Sep 17 00:00:00 2001 From: Paul Carvill Date: Sat, 17 Sep 2011 15:00:24 +0100 Subject: [PATCH 3/3] added some more info about selecting a new theme in Wordpress --- Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 286a0d9..456c6f3 100644 --- a/Readme.md +++ b/Readme.md @@ -20,8 +20,9 @@ NEVER WORRY ABOUT SETTING UP MYSQL AND PHP ON YOUR MAC EVER AGAIN! $ vagrant up $ open http://localhost:8080 -Copy a base theme (like [Starkers][starkers]) into the theme directory, choose -it in the Wordpress dashboard, and get to work! +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][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