Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.15 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.15 KB

How to run this blog locally

You can use Docker to run this blog locally. Just execute the following line:

docker run --rm -it --label=jekyll --volume=$(pwd):/srv/jekyll --volume blog_bundle:/usr/local/bundle -p 127.0.0.1:4000:4000 jekyll/jekyll bundle update
docker run --rm -it --label=jekyll --volume=$(pwd):/srv/jekyll --volume blog_bundle:/usr/local/bundle -p 127.0.0.1:4000:4000 jekyll/jekyll jekyll serve --watch --incremental

You should see the following output:

$ docker run --rm -it --label=jekyll --volume=$(pwd):/srv/jekyll  --volume blog_bundle:/usr/local/bundle -p 127.0.0.1:4000:4000 jekyll/jekyll jekyll serve --watch
Configuration file: /srv/jekyll/_config.yml
            Source: /srv/jekyll
       Destination: /srv/jekyll/_site
      Generating...
                    done.
 Auto-regeneration: enabled for '/srv/jekyll'
Configuration file: /srv/jekyll/_config.yml
    Server address: http://0.0.0.0:4000/
  Server running... press ctrl-c to stop.

Now point your browser to http://localhost:4000 and you should see the blog up and running.