Use the production env

This commit is contained in:
Luke Murphy 2020-04-06 13:57:50 +02:00
parent 469906c790
commit 3aac13abd7
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 4 additions and 0 deletions

View File

@ -51,3 +51,4 @@
JEKYLL_HOST: "0.0.0.0"
JEKYLL_PORT: "{{ http_port }}"
JEKYLL_CONFIG: "{{ jekyll_config }}"
JEKYLL_ENV: "{{ jekyll_env }}"

View File

@ -5,3 +5,4 @@ dokku_domain_ipv4: "94.130.105.60"
domain: "site.autonomic.zone"
http_port: "4000"
jekyll_config: "_config_prod.yml"
jekyll_env: "production"

View File

@ -6,6 +6,8 @@ set -eu -o pipefail
run_jekyll() {
set -eu
export JEKYLL_ENV="$JEKYLL_ENV"
bundle exec jekyll serve \
--config "$JEKYLL_CONFIG" \
--host "$JEKYLL_HOST" \