Skip to content

Instantly share code, notes, and snippets.

@matt40k
Last active December 28, 2017 18:42
Show Gist options
  • Save matt40k/bae2f4609f5abff293db to your computer and use it in GitHub Desktop.
Save matt40k/bae2f4609f5abff293db to your computer and use it in GitHub Desktop.
Install Github-pages on Raspberry PI
# Check GitHub pages required versions @ https://pages.github.com/versions/
# GitHub Pages info page:
# - https://github.com/blog/1581-cutting-the-github-pages-gem/
# - https://help.github.com/articles/using-jekyll-with-pages/
# Ruby is installed on Raspbian by default, but its only 1.9, we need at least 2.0
# Alas v2 isn't in the apt-get repo, but we can use the rvm to install it
# First we must add their GPG key
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
# Now lets install Ruby 2.1.1, as thats what GitHub Pages use
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1
# Install bundler
gem install bundler
# They say about creating a gemfile in the project folder, so something like:
mkdir project
cd project
vi Gemfile
# Then write:
source 'https://rubygems.org'
gem 'github-pages'
# then you could just install
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment