Created
June 30, 2014 07:22
-
-
Save jrgcubano/087027da8fc856d2f482 to your computer and use it in GitHub Desktop.
Vagrantfile for jekyll blog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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