This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch contributors-guide in repository https://gitbox.apache.org/repos/asf/struts-site.git
commit fdd3e91a2846cf2188a5b717b89a24909cb8d3cf Author: Rene Gielen <rgie...@apache.org> AuthorDate: Thu Aug 13 12:08:14 2020 +0200 Adjust docker scripts and docs to remove start errors (bash) and allow local serving --- README.md | 2 ++ docker-run.fish | 2 +- docker-run.sh | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 70cf0da..d9425c0 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ when running `fish-shell`, or: when running `Bash` or `Sh`. +The continuously generated website can then be accessed at http://localhost:4000 + All pages are generated into the `content` folder. There are two scripts used to build the image but this should be used only when `Dockerfile` was modified. diff --git a/docker-run.fish b/docker-run.fish index f9fc341..94e0a88 100755 --- a/docker-run.fish +++ b/docker-run.fish @@ -1,3 +1,3 @@ #!/usr/local/bin/fish -docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:3.8 jekyll serve --watch --trace --force_polling --incremental +docker run --rm -v $PWD:/srv/jekyll -it -p 4000:4000 jekyll/jekyll:3.8 jekyll serve --watch --trace --host 0.0.0.0 --force_polling --incremental diff --git a/docker-run.sh b/docker-run.sh index 70011ab..ff1efab 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -1,5 +1,5 @@ #!/bin/sh -export JEKYLL_VERSION 3.8 +export JEKYLL_VERSION=3.8 -docker run --rm -v $PWD:/srv/jekyll -it jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --trace --host=0.0.0.0 --force_polling --incremental +docker run --rm -v $PWD:/srv/jekyll -it -p 4000:4000 jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --trace --host 0.0.0.0 --force_polling --incremental