public_html/makefile

24 lines
604 B
Makefile
Raw Permalink Normal View History

2024-10-02 08:29:21 -03:00
JEKYLL_CMD = bundle exec jekyll
DEST_PATH = /var/www/html/alice_sites/public_html
DEST_DIR_FLAGS = --destination=${DEST_PATH}
BUILD_FLAGS = --trace
2024-11-15 12:17:32 -03:00
SERVE_FLAGS = -H 0.0.0.0 -P 33006
2024-10-02 08:29:21 -03:00
all:
sg www-data -c "${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS}"
deploy:
${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS}
# Executa o build toda vez que muda um arquivo
# Rodando como serviço do systemd em /etc/systemd/system/alice-build-watch.service
# examplo: sg www-data -c 'make watch'
watch:
${JEKYLL_CMD} build ${BUILD_FLAGS} ${DEST_DIR_FLAGS} -w
serve:
${JEKYLL_CMD} serve ${SERVE_FLAGS}