Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:05
What would you like to do?
sample node + mongodb file
$install_script = <<SCRIPT
sudo apt-key adv --keyserver --recv 7F0CEB10
echo 'deb dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
sudo apt-get install -y mongodb-10gen
curl -L | bash -s stable --ruby=2.1.1
source /home/vagrant/.rvm/scripts/rvm
gem install bundler
cd /sage && bundle install && npm install -g bower grunt-cli
Vagrant.configure(2) do |config| = "hashicorp/precise64" "forwarded_port", guest: 4000, host: 4000
config.vm.synced_folder ".", "/sage", type: "nfs"
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
config.vm.provision "shell", inline: "apt-get install -y curl nodejs"
config.vm.provision "shell", inline: $install_script, privileged: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment