Skip to content

Instantly share code, notes, and snippets.

@alnjxn
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alnjxn/34dcb599b7e4b1efe279 to your computer and use it in GitHub Desktop.
Save alnjxn/34dcb599b7e4b1efe279 to your computer and use it in GitHub Desktop.
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