I’d heard of Chef before Jose’s talk at CakeFest 2011 but his presentation on configuring CakePHP servers showed it definitely had a practical use for me and gave me the push in correct direction to actually try it out.
A few months later and my web servers were all configured in a consistent way. Brilliant, but I still had a problem. Occasionally things would work on my Mac and fail on my staging – or worse still – my production environment. After a bit of hunting around I found Vagrant.
Vagrant allows CakePHP developers to have a consistent development and production environment. Vagrant manages the virtual machine and Chef manages the configuration allowing you to develop locally in a virtual machine that is a copy of your production environment.
In this talk I’ll explain a bit about the benefits, give a practical example of something that works on my laptop but fails once it’s pushed live and show how to bring up a Vagrant VM, fix the problem and push it live.