vagrant/website/Makefile

31 lines
708 B
Makefile
Raw Normal View History

2018-09-25 19:59:22 +00:00
configure_cache:
mkdir -p tmp/cache
build: configure_cache
2017-04-06 22:11:50 +00:00
@echo "==> Starting build in Docker..."
@docker run \
--interactive \
--rm \
--tty \
2018-09-25 19:59:22 +00:00
--volume "$(shell pwd):/opt/buildhome/repo" \
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
--env "ENV=production" \
2018-09-14 21:20:09 +00:00
netlify/build \
2018-09-25 19:59:22 +00:00
build middleman build --verbose
2017-04-06 22:11:50 +00:00
2018-09-25 19:59:22 +00:00
website: configure_cache
2016-10-29 20:49:57 +00:00
@echo "==> Starting website in Docker..."
@docker run \
2017-04-06 22:11:50 +00:00
--interactive \
--rm \
2016-10-29 20:49:57 +00:00
--tty \
2018-09-25 19:59:22 +00:00
--volume "$(shell pwd):/opt/buildhome/repo" \
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
2016-10-29 20:49:57 +00:00
--publish "4567:4567" \
--publish "35729:35729" \
2018-09-25 19:59:22 +00:00
--env "ENV=production" \
2018-09-14 21:20:09 +00:00
netlify/build \
2018-09-25 19:59:22 +00:00
build middleman
2015-09-24 23:41:40 +00:00
2017-04-06 22:11:50 +00:00
.PHONY: build website