Last active
December 28, 2015 06:38
-
-
Save Ilyes512/7458072 to your computer and use it in GitHub Desktop.
Vagrant for the sole purpose of creating Jekyll (GutHub) pages
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
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 |
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| | |
# 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