Sign inSign up

ivonet/hexo

By ivonet

•Updated over 7 years ago

A hexo distro I use as base for my website

Image
0

10K+

ivonet/hexo repository overview

⁠ivonet/hexo

This image contains a Hexo distro.

It is actually a the base for my website⁠.

⁠Usage example(s)

⁠Interactive EDGEd mode

Start hexo in interactive mode with two folders mounted and in EDGE mode... EDGE mode will always try to upgrade hexo after a restart. This might break your build if the update was not a good one. (default EDGE=0)

docker run \
       --rm \
       --name hexo \
       -it \
       -v $(pwd)/blog:/blog \
       -v $(pwd)/scripts:/scripts \
       -p 4000:4000 \
       -e EDGE=1 \
       ivonet/hexo

⁠Generate content

This command you do on a running hexo to re-render static content. e.g. when a new blog was added.

docker exec -it hexo hexo generate --debug

⁠bin folder

Please look in the bin folder for some example scripts that might help...

⁠/script

This folder can be used to install "aftermarket" stuff :-) if you put a shell script in that folder and restart docker it will be executed in the docker container

⁠/blog

this folder contains the blog. If empty it will be filled with a default landscape theme if it already contains stuff then it will just start the server

⁠Contact

My twitter handle: @ivonet

Tag summary

Content type

Image

Digest

Size

29.1 MB

Last updated

over 7 years ago

docker pull ivonet/hexo