Updates to the logo, theme, etc.

This commit is contained in:
Bastian de Byl
2020-04-18 18:50:38 -04:00
parent bae37b8d0d
commit 202b251223
3 changed files with 16 additions and 6 deletions

View File

@@ -33,10 +33,14 @@ CLOUDFRONT_CMD=cloudfront create-invalidation --distribution-id ${DISTRIBUTION_I
build:
$(DOCKER_RUN) ${HUGO_IMAGE}
mount:
if [ ! -d "${STATIC_DIR}/static" ]; then aws s3 sync s3://bdebyl.static static/; fi
unmount:
if [ -d "${STATIC_DIR}/static" ]; then rm -rfv static/
run:
if [ ${MOUNT_BUCKET} ]; then s3fs -o use_path_request_style bdebyl.static ${STATIC_DIR}; fi
-$(DOCKER_RUN) -it ${DOCKER_PORT} ${HUGO_IMAGE} server --bind=0.0.0.0
if [ -d "${STATIC_DIR}/static" ]; then fusermount -u ${STATIC_DIR}; fi
-$(DOCKER_RUN) -it ${DOCKER_PORT} ${HUGO_IMAGE} -D server --bind=0.0.0.0
version:
$(DOCKER_RUN) ${HUGO_IMAGE} version
@@ -57,5 +61,5 @@ cache:
@$(DOCKER_RUN) ${AWS_ENV} ${AWS_IMAGE} ${CLOUDFRONT_CMD}
# Default target for make (<=3.80)
.PHONY: static unmount build _run run version new clean deploy cache
.PHONY: static mount unmount build _run run version new clean deploy cache
default: build