add makefile
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s
Details
This commit is contained in:
parent
933b0fbe9b
commit
64b5033417
|
@ -0,0 +1,31 @@
|
|||
#command = env LANG=\"pt_BR.UTF-8\" /usr/bin/bundle exec /usr/local/bin/jekyll build --incremental --trace --destination=/var/www/html/alice --source=/var/www/src/alice 2>&1 | /usr/bin/tee -a /tmp/jekyll.log
|
||||
|
||||
#command = /usr/bin/bundle exec /usr/local/bin/jekyll build --incremental --trace --destination=/var/www/html/alice --source=/var/www/src/alice 2>&1 | /usr/bin/tee -a /tmp/jekyll.log
|
||||
|
||||
JEKYLL_CMD = bundle exec jekyll
|
||||
|
||||
SRC_PATH = /var/www/src/alice
|
||||
DEST_PATH = /var/www/html/alice
|
||||
LOG_PATH = /tmp/alice-jekyll.log
|
||||
|
||||
DEST_DIR_FLAGS = --destination=${DEST_PATH}
|
||||
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}"
|
||||
|
||||
# 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} ${SRC_DIR_FLAGS} -w
|
||||
|
||||
serve:
|
||||
${JEKYLL_CMD} serve ${SRC_DIR_FLAGS} ${SERVE_FLAGS}
|
||||
|
||||
|
||||
people:
|
||||
touch pt/people.md en/people.md
|
Loading…
Reference in New Issue