add admin scripts over from treehouse
would be nice to rewrite these as a standalone utility that integrates with Nix someday i guess
This commit is contained in:
parent
be6a47ae13
commit
384e64009e
6 changed files with 64 additions and 0 deletions
4
admin/daemon/common.bash
Normal file
4
admin/daemon/common.bash
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
reload_fifo="/tmp/rkgk_reload.fifo"
|
||||
build_log="/tmp/rkgk_build.log"
|
11
admin/daemon/deploy.bash
Normal file
11
admin/daemon/deploy.bash
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
cd ~/repo
|
||||
|
||||
source "${BASH_SOURCE%/*}/common.bash"
|
||||
|
||||
git pull
|
||||
bash "${BASH_SOURCE%/*}/reload.bash"
|
||||
|
||||
echo "^C to exit build log ($build_log)"
|
||||
tail --retry -f "$build_log"
|
6
admin/daemon/reload.bash
Normal file
6
admin/daemon/reload.bash
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
source "${BASH_SOURCE%/*}/common.bash"
|
||||
|
||||
echo "Reloading"
|
||||
echo "reload" > "$reload_fifo"
|
Loading…
Add table
Add a link
Reference in a new issue