Use the entrypoint setup to run jekyll
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy
2020-03-31 14:37:09 +02:00
parent d00d763645
commit 741df0045b
2 changed files with 25 additions and 1 deletions

24
sbin/entrypoint.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
set -eu -o pipefail
# Fire up Jekyll with the right configuration
run_jekyll() {
set -eu
jekyll serve \
--port "$JEKYLL_PORT" \
--host "$JEKYLL_HOST" \
--ssl-cert "$JEKYLL_SSL_CERT" \
--ssl-key "$JEKYLL_SSL_KEY" \
--trace
}
# Main entrypoint
main() {
set -eu
run_jekyll
}
main