mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Fix Netlify settings for separate deployments
This commit is contained in:
parent
9368630d56
commit
f0884e0a40
4
Makefile
4
Makefile
@ -2,6 +2,10 @@
|
||||
build:
|
||||
hugo --destination public
|
||||
|
||||
.PHONY: build-draft
|
||||
build-draft:
|
||||
hugo --environment development --buildDrafts --buildFuture --buildExpired --destination public
|
||||
|
||||
.PHONY: build-openring
|
||||
build-openring:
|
||||
./bin/openring-create --input assets/templates/openring-input.html --output layouts/partials/openring.html
|
||||
|
15
netlify.toml
15
netlify.toml
@ -1,15 +1,14 @@
|
||||
[build]
|
||||
publish = "public/"
|
||||
command = "make build"
|
||||
command = "make build -e"
|
||||
|
||||
[context.production.environment]
|
||||
HUGO_BASE_URL = "$DEPLOY_URL"
|
||||
HUGO_BASEURL = "$DEPLOY_URL"
|
||||
|
||||
[context.branch-deploy.environment]
|
||||
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"
|
||||
[context.branch-deploy]
|
||||
command = "make build-draft -e"
|
||||
environment.HUGO_BASEURL = "$DEPLOY_PRIME_URL"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --buildDrafts --buildFuture --buildExpired"
|
||||
|
||||
[context.deploy-preview.environment]
|
||||
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"
|
||||
command = "make build-draft -e"
|
||||
environment.HUGO_BASEURL = "$DEPLOY_PRIME_URL"
|
||||
|
Loading…
Reference in New Issue
Block a user