Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (28 sloc) 1023 Bytes


Install dependencies

activerecord 5 requires ruby >= 2.2.2

(for Ubuntu <16.04):

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get purge ruby1.9
sudo apt-get install ruby2.2 ruby2.2-dev
ruby2.2 -v  # shows 2.2.5
#sudo gem2.2 sources --add --remove  # only if inside china
sudo gem2.2 install bundler

(Ubuntu >16.04 come with ruby 2.3):

sudo apt install ruby ruby-dev libffi-dev libz-dev libxml2-dev
sudo gem install bundler

Clone repo and install gh-pages

git clone myblog
cd myblog
bundle install

Create post and publish

vi _posts/

Serve locally

bundle exec jekyll serve
# check blog at localhost:4000, if all good, proceed to next step

Create post and publish

git add _posts/
git commit -a -m 'comment'
git push