Skip to content

Commit

Permalink
Split serve and sync and reuse-sync πŸ”
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Mar 31, 2020
1 parent fd7fa3a commit 0ad2249
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
.PHONY: sync
sync:
python sync/sync.py

.PHONY: serve
serve:
python sync/sync.py && \
hugo server \
--buildDrafts \
--buildFuture \
--disableFastRender \
--ignoreCache

production-build:
python sync/sync.py && hugo
.PHONY: production-build
production-build: sync
hugo

preview-build:
python sync/sync.py && hugo --baseURL $(DEPLOY_PRIME_URL)
.PHONY: preview-build
preview-build: sync
hugo --baseURL $(DEPLOY_PRIME_URL)

0 comments on commit 0ad2249

Please sign in to comment.