I use jekyll with minimal mistakes for publishing the blog. Here are the steps to setup a local server to write new pages in the existing framework.
In this case I am starting off with a fresh install of Ubuntu17.04 in a virtual machine. It came with ruby installed so,
gem command was already available, but
ruby-dev had to be installed along with couple of other tools.
1 2 sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev jekyll bundler
Once the tools are installed, got to the cloned blog folder and run the following command to install missing gems and dependencies.
1 2 3 bundle config build.nokogiri --use-system-libraries --with-xml2-lib=/usr/lib --with-xml2-include=/usr/include/libxml2 --with-xslt-lib=/usr/lib --with-xslt-include=/usr/include bundle install
nokogiri setup is required for latest version to compile with system versions of xml libs.
Once all installations are successful, run the following command to serve the blog in localhost
1 bundle exec jekyll serve
--incremental flag when writing pages since the process will be faster
Share onTwitter Facebook Google+ LinkedIn
Leave a Comment
Your email address will not be published. Required fields are marked *