Skip to content

thoughtram/blog

This branch is 1 commit ahead of, 4 commits behind master.

Folders and files

NameName
Last commit message
Last commit date
Apr 8, 2019
Aug 6, 2019
Apr 8, 2019
Sep 2, 2019
Jul 25, 2018
Nov 19, 2015
Dec 11, 2016
Nov 13, 2022
Sep 2, 2019
Jul 29, 2017
Nov 7, 2016
Apr 26, 2016
Oct 9, 2014
Sep 2, 2019
Oct 9, 2014
Sep 2, 2019
Apr 12, 2018
Oct 9, 2014
Aug 24, 2016
Feb 20, 2018
Jan 2, 2018
Aug 24, 2016
Aug 24, 2016
Jul 29, 2016
Oct 9, 2014
Sep 2, 2019
Oct 28, 2019
Sep 2, 2019
Sep 2, 2019
Jul 29, 2016
Jul 29, 2016
Oct 9, 2014
Jul 29, 2016
Jul 29, 2016
Jan 10, 2018
Sep 30, 2019
Sep 2, 2019
Jul 29, 2016
Jul 29, 2019
Mar 31, 2017

Repository files navigation

thoughtram Blog

We use Jekyll as static site generator. You can read its docs here.

sudo gem install jekyll
sudo gem install jekyll-redirect-from
sudo gem install jekyll-paginate

jekyll serve

Using docker

This blog requires ruby, jekyll and a bunch of other dependencies in specific versions. Managing these dependencies can become difficult over time and often the simplest solution is to use docker.

NOTE: Depending on the docker installation, the following commands might need to be run using sudo.

Action Local Jekyll Using Docker
Building jekyll build yarn docker-jekyll-build
Serving jekyll serve yarn docker-jekyll-serve
Deplyoing yarn deploy [...] yarn deploy --use-docker [...]

Caveats

These commands are intended to be used as straight forward replacements. There's one caveat though: They don't let one use additional parameters. E.g. one can not change the default port for serving, it is hard-wired to serve the site on http://localhost:4000.

Also if sudo is needed to run these tasks, the repo might end up owned by the super user which may be a slight inconvenience.