add deploy watch to make

This commit is contained in:
Carneiro 2024-08-05 15:24:42 -03:00
parent e15e347131
commit ad9d441ccc
1 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@
JEKYLL_CMD = bundle exec jekyll
SRC_PATH = /var/www/src/Alice_JK
DEST_PATH = /var/www/html/alice_cast
DEST_PATH = /var/www/html/aliceclass
LOG_PATH = /tmp/alicecast-jekyll.log
DEST_DIR_FLAGS = --destination=${DEST_PATH}
@ -25,8 +25,12 @@ build:
# Executa o build toda vez que muda um arquivo
# Rodando como serviço do systemd em /etc/systemd/system/alicecast-build-watch.service
# examplo: sg www-data -c 'make watch'
deploy_watch:
sg www-data -c "${JEKYLL_CMD} build --trace ${DEST_DIR_FLAGS} -w"
watch:
${JEKYLL_CMD} build {BUILD_FLAGS} ${DEST_DIR_FLAGS} ${SRC_DIR_FLAGS} -w
${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS} -w
serve:
${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS}