Build tweaks now that we're using hugo.IsProduction (#679)

This commit is contained in:
Patrice Chalin 2021-02-23 17:40:38 -05:00 committed by GitHub
parent cf3c3709fb
commit ce5bfbf4de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 8 deletions

View File

@ -9,15 +9,15 @@ clean:
serve:
@./check_hugo.sh
hugo server
hugo serve
serve-drafts:
@./check_hugo.sh
hugo server $(DRAFT_ARGS)
hugo serve $(DRAFT_ARGS)
serve-production: clean
@./check_hugo.sh
hugo server --minify
hugo serve -e production --minify
production-build: clean
@./check_hugo.sh
@ -25,7 +25,8 @@ production-build: clean
preview-build: clean
@./check_hugo.sh
hugo --baseURL $(DEPLOY_PRIME_URL) $(BUILD_ARGS)
hugo --baseURL $(DEPLOY_PRIME_URL) \
-e development $(BUILD_ARGS)
link-checker-setup:
curl https://raw.githubusercontent.com/wjdp/htmltest/master/godownloader.sh | bash

View File

@ -10,6 +10,3 @@ command = "git submodule update --init --recursive --depth 1 && make preview-bui
[context.deploy-preview]
command = "git submodule update --init --recursive --depth 1 && make preview-build"
[context.production.environment]
HUGO_ENV = "production"

@ -1 +1 @@
Subproject commit b65e281e957659f64b1c38f92a51d9b99a2eb0a7
Subproject commit a342c5baea1f1a00832016555337bf8481df015f