Skip to content

Instantly share code, notes, and snippets.

@Ilyes512
Last active December 28, 2015 06:38
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 Ilyes512/7458072 to your computer and use it in GitHub Desktop.
Save Ilyes512/7458072 to your computer and use it in GitHub Desktop.
Vagrant for the sole purpose of creating Jekyll (GutHub) pages
sudo -i
# Installing Jekyll and it's dependencies
apt-get update
apt-get install -y build-essential python-pygments curl
\curl -L https://get.rvm.io | bash -s stable --ruby
source /usr/local/rvm/scripts/rvm
gem update --no-rdoc --no-ri --quiet
gem install jekyll rdiscount compass --no-rdoc --no-ri
# Installing Node and it's dependencies
apt-get install -y python-software-properties python g++ make
add-apt-repository -y ppa:chris-lea/node.js
apt-get update
apt-get install -y nodejs
# Installing Yo
npm install -g yo
chown -R vagrant:vagrant /usr/lib/node_modules
exit
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Box name & download source
config.vm.box = "ubuntu-precise12042-x64-vbox43"
config.vm.box_url = "https://puphpet.s3.amazonaws.com/ubuntu-precise12042-x64-vbox43.box"
# Network
config.vm.network :forwarded_port, host: 4000, guest: 4000, auto_correct: true
# Syncing folder(s)
config.vm.synced_folder "foundationplus", "/jekyll", :nfs => false
# Provisioning
config.vm.provision :shell, :path => "bootstrap.sh"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment