5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-06 13:15:46 +00:00

capturar todo el log

This commit is contained in:
f 2018-09-10 10:58:34 -03:00
parent 5e02d061d1
commit 8833219379
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -23,15 +23,19 @@ find -L ./_sites -mindepth 3 -maxdepth 3 -name .generate \
# Entrar al directorio del sitio
pushd "${_path}" &>/dev/null
# Reiniciar el log con la fecha
date > build.log
# Instalar las gemas si no están
test -f .bundle/config \
|| bundle install --path=/srv/http/gems.kefir.red
|| bundle install --path=/srv/http/gems.kefir.red \
>> build.log
# Actualizar las gemas
bundle
bundle >> build.log
# Instalar los assets
test -f yarn.lock \
&& yarn
&& yarn >> build.log
# Crear el sitio con lujo de detalles y guardar un log, pero a la vez
# tenerlo en la salida estándar para poder enviar al MAILTO del
@ -45,7 +49,7 @@ find -L ./_sites -mindepth 3 -maxdepth 3 -name .generate \
bundle exec \
jekyll build --trace --destination "${_deploy}" 2>&1 \
| sed -re "s,${_path},,g" \
> "build.log"
>> "build.log"
# Acciones posteriores
# TODO convertir en un plugin de cada sitio?