Skip to content

Instantly share code, notes, and snippets.

@vvasilev-
Created October 10, 2017 08:42
Show Gist options
  • Save vvasilev-/d57d1bfd5f7d185c8722cb514326a58f to your computer and use it in GitHub Desktop.
Save vvasilev-/d57d1bfd5f7d185c8722cb514326a58f to your computer and use it in GitHub Desktop.
config.vm.provision "shell", inline: <<-SHELL
echo "Preparing local node_modules folder…"
mkdir /vagrant_node_modules
chown vagrant:vagrant /vagrant_node_modules
SHELL
config.vm.provision "shell", run: "always", inline: <<-SHELL
mount --bind /vagrant_node_modules /vagrant/node_modules
SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment