Use different configs for different envs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3da45feb42
commit
06b82858f9
2
Makefile
2
Makefile
@ -13,6 +13,8 @@ dockerserver: dockerbuild
|
|||||||
@docker run \
|
@docker run \
|
||||||
-e JEKYLL_PORT=4000 \
|
-e JEKYLL_PORT=4000 \
|
||||||
-e JEKYLL_HOST=0.0.0.0 \
|
-e JEKYLL_HOST=0.0.0.0 \
|
||||||
|
-e JEKYLL_CONFIG=_config_dev.yml \
|
||||||
-p 4000:4000 \
|
-p 4000:4000 \
|
||||||
|
-d \
|
||||||
autonomic/autonomic.zone:testing
|
autonomic/autonomic.zone:testing
|
||||||
.PHONY: dockerserver
|
.PHONY: dockerserver
|
||||||
|
27
_config_dev.yml
Normal file
27
_config_dev.yml
Normal 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
|
@ -50,4 +50,4 @@
|
|||||||
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
DOKKU_LETSENCRYPT_EMAIL: "{{ autonomic_admin_mail }}"
|
||||||
JEKYLL_HOST: "0.0.0.0"
|
JEKYLL_HOST: "0.0.0.0"
|
||||||
JEKYLL_PORT: "{{ http_port }}"
|
JEKYLL_PORT: "{{ http_port }}"
|
||||||
JEKYLL_BASEURL: "//{{ domain }}"
|
JEKYLL_CONFIG: "{{ jekyll_config }}"
|
||||||
|
@ -4,3 +4,4 @@ autonomic_admin_mail: "helo@autonomic.zone"
|
|||||||
dokku_domain_ipv4: "94.130.105.60"
|
dokku_domain_ipv4: "94.130.105.60"
|
||||||
domain: "site.autonomic.zone"
|
domain: "site.autonomic.zone"
|
||||||
http_port: "4000"
|
http_port: "4000"
|
||||||
|
jekyll_config: "_config_prod.yml"
|
||||||
|
@ -7,7 +7,7 @@ run_jekyll() {
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
bundle exec jekyll serve \
|
bundle exec jekyll serve \
|
||||||
--baseurl "$JEKYLL_BASEURL" \
|
--config "$JEKYLL_CONFIG" \
|
||||||
--host "$JEKYLL_HOST" \
|
--host "$JEKYLL_HOST" \
|
||||||
--port "$JEKYLL_PORT" \
|
--port "$JEKYLL_PORT" \
|
||||||
--trace
|
--trace
|
||||||
|
Reference in New Issue
Block a user