I recently gave a quick talk about how I use Nginx, HHVM, MariaDB with WordPress on this blog at the March WordPress Meetup in Tokyo. Here are the slides:
I’ve published a Vagrant template for the setup detailed in the slides.
I recently gave a quick talk about how I use Nginx, HHVM, MariaDB with WordPress on this blog at the March WordPress Meetup in Tokyo. Here are the slides:
I’ve published a Vagrant template for the setup detailed in the slides.
I’ve been playing around with Vagrant recently. It really is a great tool for setting up development environments quickly and cleanly – no more local MySQL databases with 100 separate databases!
There are a few ways to solve this problem that many WordPress developers have:
I’m going to be talking about the last option, Vagrant, in this blog post. I’ll list out a few reasons why Vagrant was attractive to me in the first place:
vagrant up
, and you’re ready to go.Here’s what I came up with: vagrant-wp-theme-template.
It’s a template based on Underscores (_s), a template theme for WordPress themes. I’ve made two modifications: convert the CSS to SCSS, and the JavaScript to CoffeeScript. Grunt, an excellent automation tool, is used to compile the sources into CSS and JavaScript.
I’ve made the template compatible with _s
, so just follow the instructions for _s
regarding naming your theme, then the directions for getting your development environment set up. If you want to use an existing theme, just drop it inside the theme
folder (and don’t forget to update the name in the Vagrantfile
!)
I’m always open to new ideas and pull requests – please don’t hesitate to contribute!
Finally, this wouldn’t have been possible without the help of @miya0001‘s vagrant-chef-centos-wordpress, which this template is built off of. Thanks!