Permalink
Browse files

updating vagrant

  • Loading branch information...
1 parent ef9bc40 commit bac4c036ec800ab01e0d4650aa37493fd49d2a66 @sudo-reboot sudo-reboot committed Sep 24, 2013
Showing with 7 additions and 7 deletions.
  1. +1 −2 Vagrantfile
  2. +6 −5 node-bootstrap.sh
View
@@ -1,6 +1,7 @@
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
+ config.vm.synced_folder "./", "/vagrant"
config.vm.provision :shell, :path => "node-bootstrap.sh"
config.vm.network :private_network, ip: '33.33.33.10'
@@ -9,7 +10,5 @@ Vagrant.configure("2") do |config|
# vb.customize ["modifyvm", :id, "--memory", "2048"]
# vb.customize ["modifyvm", :id, "--cpus", "4"]
end
-
- config.vm.synced_folder "./", "/vagrant/www/default"
end
View
@@ -8,10 +8,7 @@ if [ ! -d "/var/www" ]
then
# Update and begin installing some utility tools
apt-get -y update
- apt-get install -y python-software-properties
- apt-get install -y vim git subversion curl
- apt-get install -y memcached build-essential
- apt-get install -y apache2
+ apt-get install -y python-software-properties git curl build-essential apache2
# Build latest node.js from source
cd /tmp
@@ -21,8 +18,12 @@ then
make
make install
+ cd /vagrant
+ npm install
+
# Symlink our host www to the guest /var/www folder
- ln -s /vagrant/www /var/www
+ sudo rm -rf /var/www
+ sudo ln -s /vagrant/ /var/www
fi

0 comments on commit bac4c03

Please sign in to comment.