diff --git a/Vagrantfile b/Vagrantfile index 866c9c3..7260ab0 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -24,11 +24,18 @@ ram = ENV["VM_RAM"] || 2048 Vagrant.configure(2) do |config| - config.vm.box = "inclusivedesign/fedora26" + config.vm.box = "inclusivedesign/fedora27" # 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"