Skip to content

Commit

Permalink
Remove old build files when setting up Vagrant env for the first time.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Jun 1, 2016
1 parent d01c6d3 commit 31a5cb2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
Expand Down

0 comments on commit 31a5cb2

Please sign in to comment.