Merge pull request from AlanHohn/vagrant-node-modules

Vagrant node modules
This commit is contained in:
Nick Winter 2015-04-03 11:19:26 -07:00
commit 8208b7eb51
3 changed files with 8 additions and 1 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

@ -5,12 +5,17 @@ sudo apt-get -y install python-software-properties git
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 coffeescript
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
cd /vagrant
sudo npm install
sudo npm install -g bower
sudo npm install -g brunch
sudo npm install -g geoip-lite
sudo npm install -g coffee-script
bower install --allow-root
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list