Build first before serving
[ci skip]
This commit is contained in:
parent
c7579b87b5
commit
68a8df1fb1
@ -7,13 +7,20 @@ run_jekyll() {
|
||||
set -eu
|
||||
|
||||
# shellcheck disable=SC2155
|
||||
local args="--config $JEKYLL_CONFIG --host $JEKYLL_HOST --port $JEKYLL_PORT --trace --verbose"
|
||||
local args="--config $JEKYLL_CONFIG --trace --verbose"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
bundle exec jekyll build $args
|
||||
|
||||
# shellcheck disable=SC2155
|
||||
local args="${args} --host $JEKYLL_HOST --port $JEKYLL_PORT"
|
||||
|
||||
if [[ $JEKYLL_ENV == "development" ]]; then
|
||||
# shellcheck disable=SC2155
|
||||
local args="${args} --incremental"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
bundle exec jekyll serve $args
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user