vagrant fix issues with node_modules bind mount

This commit is contained in:
Alan Hohn 2015-03-28 22:58:04 -04:00
parent 8bf7a29d9e
commit 2bc2f90665
3 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh
vagrant ssh -c "sudo mount -o bind /node_modules /vagrant/node_modules"
vagrant ssh -c "cd /vagrant && bin/coco-brunch"

View file

@ -1,3 +1,4 @@
#!/bin/sh
vagrant ssh -c "sudo mount -o bind /node_modules /vagrant/node_modules"
vagrant ssh -c "cd /vagrant && bin/coco-dev-server"

View file

@ -6,6 +6,7 @@ sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
sudo apt-get -y install g++ make
mkdir /vagrant/node_modules
sudo mkdir /node_modules
sudo chown vagrant:vagrant /node_modules
sudo mount -o bind /node_modules /vagrant/node_modules