Skip to content

Commit

Permalink
Merge branch 'GPII-2713'
Browse files Browse the repository at this point in the history
* gtirloni/GPII-2713:
  GPII-2713 - Upgrade to Fedora 27
  GPII-2060 - Bind mount node_modules in /var/tmp
  • Loading branch information
javihernandez committed Feb 12, 2018
2 parents cf5fe55 + d4afced commit fe09d59
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fe09d59

Please sign in to comment.