Skip to content

Commit 737a714

Browse files
committed
Include future posts when serving development website
Signed-off-by: Robert Young <robertyoungnz@gmail.com>
1 parent 9e373d1 commit 737a714

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ RUN mkdir /site/
4545
WORKDIR /site/
4646
EXPOSE 4000
4747
# Note --incremental mode is ineffective on the Mac owing to https://github.com/containers/podman/issues/22343. Use force_regenerate.sh to trigger the incremental reload after changing the file on the host.
48-
CMD [ "bash", "-c", "eval \"$(rbenv init -)\" && cp -r /css/_sass/bootstrap /site/_sass/ && bundle exec jekyll serve --host ${JEKYLL_SERVE_BIND} --incremental --disable-disk-cache --destination /tmp/site"]
48+
CMD [ "bash", "-c", "eval \"$(rbenv init -)\" && cp -r /css/_sass/bootstrap /site/_sass/ && bundle exec jekyll serve ${JEKYLL_SERVE_ARGS} --host ${JEKYLL_SERVE_BIND} --incremental --disable-disk-cache --destination /tmp/site"]

run-snapshot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ cd ${KROXYLICIOUS_DIR}
2424
mvn -P dist clean package -pl :kroxylicious-docs
2525
cp -r kroxylicious-docs/target/web/* ${SCRIPT_DIR}
2626
cd ${SCRIPT_DIR}
27+
export JEKYLL_SERVE_ARGS=--future
2728
exec ./run.sh

run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ else
1515
RUN_ARGS+=(--net host)
1616
fi
1717

18+
if [ -n "${JEKYLL_SERVE_ARGS}" ]; then
19+
RUN_ARGS+=(--env JEKYLL_SERVE_ARGS="${JEKYLL_SERVE_ARGS}")
20+
fi
21+
1822
if [ "$CONTAINER_ENGINE" = 'podman' ]; then
1923
RUN_ARGS+=(-v $(pwd):/site/:Z)
2024
fi
2125

2226
RUN_ARGS+=(--rm --name jekll_serve -it kroxylicious-website)
2327

24-
${CONTAINER_ENGINE} build . -t kroxylicious-website
28+
${CONTAINER_ENGINE} build . -t kroxylicious-website
2529

2630
${CONTAINER_ENGINE} run "${RUN_ARGS[@]}"

0 commit comments

Comments
 (0)