update makefile
This commit is contained in:
parent
7745aac63b
commit
3f6526f7cf
|
@ -1,25 +1,30 @@
|
||||||
build:
|
configure_cache:
|
||||||
|
mkdir -p tmp/cache
|
||||||
|
|
||||||
|
build: configure_cache
|
||||||
@echo "==> Starting build in Docker..."
|
@echo "==> Starting build in Docker..."
|
||||||
@docker run \
|
@docker run \
|
||||||
--interactive \
|
--interactive \
|
||||||
--rm \
|
--rm \
|
||||||
--tty \
|
--tty \
|
||||||
--volume "$(shell pwd):/website" \
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
||||||
-e "ENV=production" \
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
||||||
|
--env "ENV=production" \
|
||||||
netlify/build \
|
netlify/build \
|
||||||
build cd website && middleman build --verbose
|
build middleman build --verbose
|
||||||
|
|
||||||
website:
|
website: configure_cache
|
||||||
@echo "==> Starting website in Docker..."
|
@echo "==> Starting website in Docker..."
|
||||||
@docker run \
|
@docker run \
|
||||||
--interactive \
|
--interactive \
|
||||||
--rm \
|
--rm \
|
||||||
--tty \
|
--tty \
|
||||||
--volume "$(shell pwd):/website" \
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
||||||
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
||||||
--publish "4567:4567" \
|
--publish "4567:4567" \
|
||||||
--publish "35729:35729" \
|
--publish "35729:35729" \
|
||||||
-e "ENV=production" \
|
--env "ENV=production" \
|
||||||
netlify/build \
|
netlify/build \
|
||||||
build cd website && middleman
|
build middleman
|
||||||
|
|
||||||
.PHONY: build website
|
.PHONY: build website
|
||||||
|
|
Loading…
Reference in New Issue