print build log when deploying

This commit is contained in:
liquidex 2024-02-04 16:14:49 +01:00
parent 73e93d864d
commit 0315a63c66
4 changed files with 8 additions and 1 deletions

View file

@ -1,7 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source "${BASH_SOURCE%/*}/daemon/common.bash" source "${BASH_SOURCE%/*}/daemon/common.bash"
build_log="/tmp/treehouse_build.log"
trap 'trap - SIGTERM && kill 0' SIGTERM SIGINT EXIT trap 'trap - SIGTERM && kill 0' SIGTERM SIGINT EXIT

View file

@ -1,3 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
reload_fifo="/tmp/treehouse_reload.fifo" reload_fifo="/tmp/treehouse_reload.fifo"
build_log="/tmp/treehouse_build.log"

View file

@ -1,5 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
cd ~/repo cd ~/repo
source "${BASH_SOURCE%/*}/common.bash"
git pull git pull
bash "${BASH_SOURCE%/*}/reload.bash" bash "${BASH_SOURCE%/*}/reload.bash"
echo "^C to exit build log ($build_log)"
tail --retry -f "$build_log"

View file

@ -2,4 +2,5 @@
source "${BASH_SOURCE%/*}/common.bash" source "${BASH_SOURCE%/*}/common.bash"
echo "Reloading"
echo "reload" > "$reload_fifo" echo "reload" > "$reload_fifo"