Add make stop and allow --incremental

[ci skip]
This commit is contained in:
Luke Murphy
2020-04-18 19:44:48 +02:00
parent 8463aa2342
commit 9f1dd6284b
3 changed files with 37 additions and 16 deletions

View File

@ -6,12 +6,15 @@ set -eu -o pipefail
run_jekyll() {
set -eu
bundle exec jekyll serve \
--config "$JEKYLL_CONFIG" \
--host "$JEKYLL_HOST" \
--port "$JEKYLL_PORT" \
--trace \
--verbose
# shellcheck disable=SC2155
local args="--config $JEKYLL_CONFIG --host $JEKYLL_HOST --port $JEKYLL_PORT --trace --verbose"
if [[ $JEKYLL_ENV == "development" ]]; then
# shellcheck disable=SC2155
local args="${args} --incremental"
fi
bundle exec jekyll serve $args
}
# Main entrypoint