From 3aac13abd7e1b8229d960cd9267c41091bd527bd Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 6 Apr 2020 13:57:50 +0200 Subject: [PATCH] Use the production env --- ansible/pre-deploy.yml | 1 + ansible/vars/all.yml | 1 + sbin/entrypoint.sh | 2 ++ 3 files changed, 4 insertions(+) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index f693f7b..8d40f9d 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -51,3 +51,4 @@ JEKYLL_HOST: "0.0.0.0" JEKYLL_PORT: "{{ http_port }}" JEKYLL_CONFIG: "{{ jekyll_config }}" + JEKYLL_ENV: "{{ jekyll_env }}" diff --git a/ansible/vars/all.yml b/ansible/vars/all.yml index f1e5733..1a1e464 100644 --- a/ansible/vars/all.yml +++ b/ansible/vars/all.yml @@ -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" diff --git a/sbin/entrypoint.sh b/sbin/entrypoint.sh index a94976f..8cd1cd5 100755 --- a/sbin/entrypoint.sh +++ b/sbin/entrypoint.sh @@ -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" \