From 31a5cb24d75798753bf85bcebd8ec098907e8dbc Mon Sep 17 00:00:00 2001 From: Nick Muerdter Date: Tue, 31 May 2016 21:30:25 -0600 Subject: [PATCH] Remove old build files when setting up Vagrant env for the first time. --- Vagrantfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index f23e6b130..5f55634ee 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -77,9 +77,15 @@ Vagrant.configure("2") do |config| # Use the user's local SSH keys for git access. config.ssh.forward_agent = true - # Enable provisioning with chef solo, specifying a cookbooks path, roles - # path, and data_bags path (all relative to this Vagrantfile), and adding - # some recipes and/or roles. + # On initial setup, ensure all temporary build files are deleted. This helps + # ensure old build files aren't kept around if you do a vagrant + # destroy/vagrant up. + config.vm.provision :shell, :inline => <<-eos + cd /vagrant + ./build/scripts/distclean + eos + + # Provision the development environment with our Chef cookbook. config.vm.provision :chef_solo do |chef| chef.run_list = [ "recipe[api-umbrella::development]",