building a static site without database using jekyll on fedora 26

Jekyll is 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 static website which is ready to deploy on your favorite web server

1.Installing dependencies

[16:38 cipher ~]$ sudo dnf install gcc-c++
[16:32 root@server ~]# sudo dnf install ruby-devel
[16:39 cipher ~]$ sudo gem install jekyll
[16:50 cipher ~/jekyll/test-site]$ gem install minima
[16:43 cipher ~]$ sudo gem install bundler
[16:43 cipher ~]$ sudo dnf install nodejs
[17:08 cipher ~/.../test-site/_posts]$ gem install jekyll-import
$
[17:25 cipher ~/.../test-site/_posts]$ sudo npm install -g jekyll-posts-generator
[sudo] password for cipher:
/usr/bin/jposts -> /usr/lib/node_modules/jekyll-posts-generator/bin/jposts
/usr/lib
└─┬ jekyll-posts-generator@0.0.6
├── commander@2.14.1
└─┬ json2yaml@1.1.0
└── remedial@1.0.7
[17:26 cipher ~/.../test-site/_posts]$

2.Building and starting jekyll

$[16:45 cipher ~]$ mkdir jekyll
[16:45 cipher ~]$ cd jekyll/
[16:45 cipher ~/jekyll]$ ll
total 0
[16:45 cipher ~/jekyll]$ jekyll new test-site
Running bundle install in /home/cipher/jekyll/test-site...
[16:52 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
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.672 seconds.
Auto-regeneration: enabled for '/home/cipher/jekyll/test-site'
Server address: https://127.0.0.1:4000/
Server running... press ctrl-c to stop.
#By default jekyll serve will run only on localhost to make it listen on all ip address use
jekyll serve --host=0.0.0.0

[16:56 cipher ~/jekyll/test-site]$ jekyll serve --host=0.0.0.0
Configuration file: /home/cipher/jekyll/test-site/_config.yml
Source: /home/cipher/jekyll/test-site
Destination: /home/cipher/jekyll/test-site/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.676 seconds.
Auto-regeneration: enabled for '/home/cipher/jekyll/test-site'
Server address: https://0.0.0.0:4000/
Server running... press ctrl-c to stop.

access jekyll site