From 3da45feb4259b9b747c6f41499a2a9fb44d6a81d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 6 Apr 2020 13:35:35 +0200 Subject: [PATCH] Try to set URL for the site --- ansible/pre-deploy.yml | 1 + sbin/entrypoint.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index b45dfae..0806bbc 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -50,3 +50,4 @@ DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}" JEKYLL_HOST: "0.0.0.0" JEKYLL_PORT: "{{ http_port }}" + JEKYLL_BASEURL: "//{{ domain }}" diff --git a/sbin/entrypoint.sh b/sbin/entrypoint.sh index 9a18a73..a1f41fe 100755 --- a/sbin/entrypoint.sh +++ b/sbin/entrypoint.sh @@ -7,8 +7,9 @@ run_jekyll() { set -eu bundle exec jekyll serve \ - --port "$JEKYLL_PORT" \ + --baseurl "$JEKYLL_BASEURL" \ --host "$JEKYLL_HOST" \ + --port "$JEKYLL_PORT" \ --trace }