DEV Setup - mrdavidlaing/stackato-buildpack-wordpress GitHub Wiki

This page documents how to set up a development environment for the stackato-buildpack-wordpress buildpack.

  1. Clone a project that uses the buildpack; eg https://github.com/mrdavidlaing/pressupbox-development-boilerplate, onto your workstation (vm host), and follow its setup instructions until you have a working dev server.
  2. Now clone this buildpack repo onto your workstation (vm host) alongside the above project so that you have a setup on your workstation similar to the following
~/Projects/pressupbox-development-boilerplate   <--- A
~/Projects/stackato-buildpack-wordpress         <--- B
  1. Startup A's vagrant dev server, vagrant ssh in and trigger a build (normally grunt build). Note where the buildpack is downloaded to (normally ~/buildpack)
  2. vagrant halt A's dev server. Edit A's Vagrantfile to add a new shared folder mapping from B into A's buildpack. eg:
config.vm.synced_folder "~/Projects/stackato-buildpack-wordpress", "/home/vagrant/buildpack"
  1. vagrant up A's dev server. Note that this time the files in the buildpack folder on A's dev server VM are actually mapped from B on the host.
Host                                          A dev VM
                                              /home/vagrant/Gruntfile.js
~/Projects/stackato-buildpack-wordpress  -->  /home/vagrant/buildpack
  1. Edit B on your workstation. Test by running A's build (i.e, grunt build from inside A's dev server VM)