Thu, February 15, 2018 ยท 1 min read

Building a static site without database using jekyll on fedora 26

Building a static site without database using jekyll on fedora 26

Jekyll is a simple static site generator that focuses on blogs, but can be used for all kinds of sites. It takes HTML templates and posts written in Markdown to generate a static website which is ready to deploy on your favorite web server.

  1. Install dependencies:
[cipher ~]$ sudo dnf install gcc-c++
[root@server ~]# sudo dnf install ruby-devel
[cipher ~]$ sudo gem install jekyll
[cipher ~/jekyll/test-site]$ gem install minima
[cipher ~]$ sudo gem install bundler
[cipher ~]$ sudo dnf install nodejs
  1. Build and start Jekyll:
[cipher ~]$ mkdir jekyll
[cipher ~]$ cd jekyll/
[cipher ~/jekyll]$ jekyll new test-site
Running bundle install in /home/cipher/jekyll/test-site...

[cipher ~/jekyll/test-site]$ jekyll serve
Configuration file: /home/cipher/jekyll/test-site/_config.yml
Source: /home/cipher/jekyll/test-site
Destination: /home/cipher/jekyll/test-site/_site
Server address: https://127.0.0.1:4000/
Server running... press ctrl-c to stop.

To make it listen on all IP addresses:

[cipher ~/jekyll/test-site]$ jekyll serve --host=0.0.0.0
Server address: https://0.0.0.0:4000/
Server running... press ctrl-c to stop.