Developing our WordPress Theme
Jump to navigation
Jump to search
Fun with WordPress Theme Development
This is a quick howto to get started with developing a wordpress theme using Vagrant
Install prerequisites
You'll need all of these:
- VirtualBox - https://www.virtualbox.org/wiki/Downloads
- The Oracle VM VirtualBox Extension Pack - https://www.virtualbox.org/wiki/Downloads
- Vagrant - http://www.vagrantup.com/downloads.html
If you're on a non-Unix workalike, you'll probably also want an SSH client, though it's not strictly necessary.
HOWTO
The steps below were taken on a Macintosh, but should really be more or less the same on any platform that Vagrant runs on.
Start with getting the prerequisites installed.
Then:
- Make a new directory:
mkdir sshc-dev
- Clone the VCCW repo in there.
git clone git@github.com:vccw-team/vccw.git sshc-dev/ Cloning into 'sshc-dev'... remote: Counting objects: 2362, done. remote: Total 2362 (delta 0), reused 0 (delta 0), pack-reused 2362 Receiving objects: 100% (2362/2362), 671.00 KiB | 0 bytes/s, done. Resolving deltas: 100% (882/882), done. Checking connectivity... done.
- Change into that directory
cd sshc-dev
- Fire the vm up so it can provision everything.
vagrant up
- Clone the utility repo into your vm:
git clone git@github.com:cswingler/sshc-sitedevesetup.git
- Check out our wordpress theme into the appropriate directory
cd www/wordpress/wp-content/ git clone git@github.com:sshchicago/untitled.git
- Then, enter the VM and run the setup script.
vagrant ssh bash /vagrant/sshc-sitedevesetup/sshc-vccw-setup.sh
And that's it! From there, you should be able to hit the VM and do things. Just go to http://192.168.33.10. Admin panel is at http://192.168.33.10/wp-admin, login/password admin/admin.
TODO
- Set up Jenkins job to create tarballs of all of our existing assets/db dump
- Document development flow
- Automate deployments from our github repo up to test
- Get test set up!