Last active
August 29, 2015 14:13
-
-
Save alnjxn/34dcb599b7e4b1efe279 to your computer and use it in GitHub Desktop.
Vagrantfile for a simple Jekyll blog
This file contains 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 : | |
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