add public html to makefile

This commit is contained in:
Carneiro committed 2024-08-05 14:55:32 -03:00
1 parent 187522f97b
commit 8894e7fd6f
1 file changed
+12 -3
+12 -3
View File
@@ -13,8 +13,13 @@ SRC_DIR_FLAGS = --source=${SRC_PATH}
BUILD_FLAGS = --trace --incremental
SERVE_FLAGS = -H 0.0.0.0 -P 33002
all:
sg www-data -c "${JEKYLL_CMD} build ${BUILD_FLAGS} ${SRC_DIR_FLAGS} ${DEST_DIR_FLAGS}"
all: build
deploy: build
sg www-data -c "install -dm775 _site ${DEST_PATH}"
build:
${JEKYLL_CMD} build --trace
# Executa o build toda vez que muda um arquivo
# Rodando como serviço do systemd em /etc/systemd/system/alicecast-build-watch.service
@@ -25,5 +30,9 @@ watch:
serve:
${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS}
public_html:
${JEKYLL_CMD} build {BUILD_FLAGS} --destination=~/public_html/aliceclass -w
clean:
rm -rf ${DEST_PATH}/*
rm -rf _site
# rm -rf ${DEST_PATH}/*