Here are the steps I took to set up RVM, Ruby, Gem & Jykll to serve a username.github.io blog on OSX:
# Install RVM (Ruby version manager)
# Also read: http://rvm.io/rvm/install and check the script before running
curl -sSL https://get.rvm.io | bash -s stable --ruby
# Install Ruby (replace x.y.z with latest stable version of ruby)
rvm install x.y.z
rvm docs generate-ri
rvm use x.y.z --default
# Check other requirements are available for jekyll and install if missing
gem --version
gcc --version
make --version
# Install jekyll
gem install jekyll
# Install bundler and get all dependencies
gem install bundler
bundle install
# Clone an existing jekyll template, this one from BlackrockDigital is nice
git clone https://github.com/BlackrockDigital/startbootstrap-clean-blog-jekyll.git
cd startbootstrap-clean-blog-jekyll
bundle exec jekyll serve
# Periodically update Jekyll to match the GitHub Pages server
bundle update github-pages
Reference:
https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
http://jekyllrb.com/docs/installation/
https://jekyllrb.com/docs/posts/
https://github.com/planetjekyll/awesome-jekyll-editors
No comments:
Post a Comment