37
using vagrant for local wordpress development

Using Vagrant for Local WordPress Development

Embed Size (px)

DESCRIPTION

Using Vagrant for Local WordPress Development

Citation preview

  • 1. using vagrantfor localwordpressdevelopment

2. about me 3. _ Domagoj Gojak (@DomagojGojak)_ Lead Developer @ Slicejack_ Using PHP for 5+ years_ Automation and security freak 4. whats wrongwith thetraditionaldevelopmentenvironment? 5. whats wrongwith mamp/wamp/xamppdevelopmentenvironment? 6. 1. Too many choices 7. commonly usedserver stacks 8. _ Zend Server_ WampServer_ MAMP_ XAMPP_ AMPPS_ EasyPHP_ BitNami Application Stacks_ Cherokee 9. 2. Enviroment (re)installation 10. _ Configuration takes too much time._ VHost, max_upload_size, memory_limit_ Dependency installation takes too much time._ WP-CLI, Node.js, Ruby etc_ Computer died? Start again!_ New developer? Start again!_ Cant remember what to install? Too bad! 11. 3. It works on my machine. #wontfix 12. 4. Leftovers 13. what isvagrant? 14. _ Wrapper around virtualization and provisioningsoftware._ Setting VM-specific settings (IP address,hostnames, port forwarding, memory, etc.)_ Running provisioning software like Puppetor Chef. 15. Vagrantfilebox = precise32url = http://files.vagrantup.com/precise32.boxhostname = my-enviromentip = 192.168.19.11ram = 256Vagrant::Config.run do |config|config.vm.box = boxconfig.vm.box_url = urlconfig.vm.host_name = hostnameconfig.vm.network :hostonly, ipconfig.vm.share_folder = dataconfig.vm.customize [modifyvm, :id,--name, hostname,--memory, ram]config.vm.provision :puppet do |puppet|puppet.manifests_path = puppet/manifestspuppet.manifest_file = site.pppuppet.module_path = puppet/modulesendend 16. vagrant up 17. provisioning 18. Server provisioning is a set of actions to preparea server with appropriate systems, data andsoftware, and make it ready for network operation. 19. provisioning bypuppet scripts 20. class wp::cli ($ensure = installed,$install_path = /usr/local/src/wp-cli,$version = dev-master) 21. vagrant provision 22. why should youvirtualize? 23. 1. Development is production 24. 2. You can now store your environment in a git repo 25. 3. No out of sync environments 26. 4. No additional configuration is needed 27. 5. No leftover services 28. wordpress? 29. _ VIP Quickstart (by Automattic)_ Varying-Vagrant-Vagrants_ Salty WordPress_ Vagrant Genesis_ VagrantPress_ Custom box? Why not! https://puphpet.com/ 30. demo 31. questions? 32. thank you! 33. Domagoj GojakLead Developer @ Slicejack.com2nd WordPress Meetup Split