mirror of
https://github.com/JimenezJC/mshj_blog.git
synced 2026-03-07 23:34:36 -05:00
adding make file stuff
This commit is contained in:
parent
b4be1547cf
commit
97763917d8
7 changed files with 37 additions and 13 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
include .env.dev
|
||||
export
|
||||
|
||||
.PHONY: dev dev-hugo dev-isso prod-build
|
||||
|
||||
# Run hugo dev server + isso in parallel
|
||||
dev:
|
||||
$(MAKE) dev-isso & $(MAKE) dev-hugo; wait
|
||||
|
||||
dev-hugo:
|
||||
hugo server -D --bind 0.0.0.0
|
||||
|
||||
dev-isso:
|
||||
isso -c isso.dev.cfg run
|
||||
|
||||
# Build for production using .env.prod
|
||||
prod-build:
|
||||
@test -f .env.prod || (echo "Error: .env.prod not found. Copy .env.prod.example to .env.prod and fill in your values." && exit 1)
|
||||
export $$(cat .env.prod | xargs) && hugo --minify
|
||||
Loading…
Add table
Add a link
Reference in a new issue