update deploy procedure

This commit is contained in:
liquidex 2024-02-03 20:12:19 +01:00
parent 7c926c3449
commit 7469e8ae5a
2 changed files with 6 additions and 1 deletions

5
admin/daemon/deploy.bash Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
cd ~/repo
git pull
"${BASH_SOURCE%/*}/reload.bash"

2
admin/deploy.bash Normal file → Executable file
View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
ssh "$TREEHOUSE_SERVER" -p "$TREEHOUSE_SERVER_PORT" "bash" "~/repo/admin/daemon/reload.bash" ssh "$TREEHOUSE_SERVER" -p "$TREEHOUSE_SERVER_PORT" "bash" "~/repo/admin/daemon/deploy.bash"