Create a gist now

Instantly share code, notes, and snippets.

@alnjxn /Vagrantfile
Last active Aug 29, 2015

Embed
Vagrantfile for a simple Jekyll blog
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 4000, host: 4000
config.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "512"
vb.name = "cbim"
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y ruby ruby-dev make gcc nodejs npm
sudo gem install jekyll --no-rdoc --no-ri
sudo gem install github-pages --no-rdoc --no-ri
sudo apt-get install -y git-core
sudo ln -s /usr/bin/nodejs /usr/bin/node
cd /vagrant
jekyll new . --force
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment