From b1aa9a1967b7b7c5015330de30aff5f397f36f21 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 23 Oct 2013 22:11:21 -0200 Subject: [PATCH] Install node on dev vm so we can try things out --- development/Vagrantfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/development/Vagrantfile b/development/Vagrantfile index b4d44b5..8919230 100644 --- a/development/Vagrantfile +++ b/development/Vagrantfile @@ -44,6 +44,24 @@ Vagrant.configure("2") do |config| fi ' + config.vm.provision :shell, inline: ' + if ! [ -d /home/vagrant/.nvm ]; then + apt-get install git -y + HOME=/home/vagrant su -p vagrant -l -c " + curl https://raw.github.com/creationix/nvm/master/install.sh | sh + " + fi + ' + + config.vm.provision :shell, inline: ' + if ! [ -d /home/vagrant/.nvm/v0.10* ]; then + HOME=/home/vagrant su -p vagrant -l -c " + nvm install 0.10 + nvm alias default 0.10 + " + fi + ' + debian_like_configs = lambda do |debian| # Here we have the RubyGems cache bucket configured to the right path, so we # bundle the project