A simple blog without a database system.
Reads markdown files in the specific directory and renders them.
docker build -t myblog .
docker run -d --name myblog myblog
-
Install Ruby 2.*. rvm is recommended.
-
Install dependencies.
bundle install
-
Puts the markdown files in the directory (md by default).
-
Modify the config file
config.json
to your needs. -
Start.
rackup
-
Enjoy.
##Tips
-
The first line of the markdown file is considered as the title of the post.
-
The second line of it is considered as the date published. (Format: YYYY-MM-DD)
-
The third line of it is considered as the category.
-
If you need to host multiple web sites in one vps, use nginx for reverse proxy.