Search code examples
vagrantpuphpet

How to apply changes to Puphpet config (via Vagrant)


I built my config with https://puphpet.com and have successfully deployed my virtual machine using vagrant up. Now I'm trying to customize it a little bit and see in the docs that there are two folders to run scripts in the VM: puphpet/files/exec-always and puphpet/files/exec-once.

I wrote a couple test BASH scripts and dropped them there but the only way I could "apply" these was if I destroy the VM completely and reprovision it from scratch. This takes an enormous amount of time.

What's the proper way to test and debug these scripts?


Solution

  • You should use $ vagrant provision!