Skip to content

Instantly share code, notes, and snippets.

@jrgcubano
Created June 30, 2014 07:22
Show Gist options
  • Save jrgcubano/087027da8fc856d2f482 to your computer and use it in GitHub Desktop.
Save jrgcubano/087027da8fc856d2f482 to your computer and use it in GitHub Desktop.
Vagrantfile for jekyll blog
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$jekyll_script = <<SCRIPT
curl -L https://get.rvm.io | bash -s stable --ruby=2.0.0
source /home/vagrant/.rvm/scripts/rvm
gem install bundler
cd /vagrant && bundle install
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise64"
config.vm.network "forwarded_port", guest: 4000, host: 4000
config.vm.provision "shell", inline: "apt-get -y install curl"
config.vm.provision "shell", inline: $jekyll_script, privileged: false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment