Build once before asynchronously serving and watching/rebuilding
This commit is contained in:
parent
3a805b0b5f
commit
99aa51a995
3
Makefile
3
Makefile
|
@ -4,6 +4,7 @@ DATABASE_PATH = /home/jer/git/blogsearch/blog.db
|
||||||
|
|
||||||
default:
|
default:
|
||||||
rm -rf _site
|
rm -rf _site
|
||||||
|
$(MAKE) build
|
||||||
$(MAKE) MAKEFLAGS=--jobs=2 dev
|
$(MAKE) MAKEFLAGS=--jobs=2 dev
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
|
|
||||||
|
@ -14,7 +15,7 @@ build:
|
||||||
cobalt build --drafts
|
cobalt build --drafts
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
serve: build
|
serve:
|
||||||
@echo "Served on http://localhost:8000"
|
@echo "Served on http://localhost:8000"
|
||||||
cd _site && http
|
cd _site && http
|
||||||
.PHONY: serve
|
.PHONY: serve
|
||||||
|
|
Loading…
Reference in a new issue