Use different configs for different envs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-04-06 13:45:40 +02:00
parent 3da45feb42
commit 06b82858f9
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
6 changed files with 32 additions and 2 deletions

View File

@ -13,6 +13,8 @@ dockerserver: dockerbuild
@docker run \
-e JEKYLL_PORT=4000 \
-e JEKYLL_HOST=0.0.0.0 \
-e JEKYLL_CONFIG=_config_dev.yml \
-p 4000:4000 \
-d \
autonomic/autonomic.zone:testing
.PHONY: dockerserver

27
_config_dev.yml Normal file
View File

@ -0,0 +1,27 @@
---
title: Autonomic Co-operative
email: helo@autonomic.zone
description: Sustainability, Transparency, Privacy
baseurl: ""
url: "https://site.autonomic.zone"
source: src
destination: dist
sass:
sass_dir: ./assets/styles
featured-image-source:
500px_url:
github_url:
mastodon_url: https://sunbeam.city/@autonomic
twitter_url: https://twitter.com/autonomiccoop
markdown: kramdown
permalink: pretty
collections:
posts:
output: true
permalink: /blog/:title/
clients:
output: false
exclude:
- vendor
- Gemfile
- Gemfile.lock

View File

@ -50,4 +50,4 @@
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
JEKYLL_HOST: "0.0.0.0"
JEKYLL_PORT: "{{ http_port }}"
JEKYLL_BASEURL: "//{{ domain }}"
JEKYLL_CONFIG: "{{ jekyll_config }}"

View File

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

View File

@ -7,7 +7,7 @@ run_jekyll() {
set -eu
bundle exec jekyll serve \
--baseurl "$JEKYLL_BASEURL" \
--config "$JEKYLL_CONFIG" \
--host "$JEKYLL_HOST" \
--port "$JEKYLL_PORT" \
--trace