Skip to content

Commit

Permalink
Merge branch 'GPII-2060' into GPII-2713
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Tirloni committed Jan 27, 2018
2 parents 8d3cc44 + 4100f8d commit d4afced
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ Vagrant.configure(2) do |config|
# Your working directory will be synced to /home/vagrant/sync in the VM.
config.vm.synced_folder ".", "#{app_directory}"

# Mounts node_modules in /var/tmp to work around issues in the VirtualBox shared folders
config.vm.provision "shell", run: "always", inline: <<-SHELL
sudo mkdir -p /var/tmp/#{app_name}/node_modules #{app_directory}/node_modules
sudo chown vagrant:vagrant -R /var/tmp/#{app_name}/node_modules #{app_directory}/node_modules
sudo mount -o bind /var/tmp/#{app_name}/node_modules #{app_directory}/node_modules
SHELL

# List additional directories to sync to the VM in your "Vagrantfile.local" file
# using the following format:
# config.vm.synced_folder "../path/on/your/host/os/your-project", "/home/vagrant/sync/your-project"
Expand Down

0 comments on commit d4afced

Please sign in to comment.