fuxxy serch + rebuild script
This commit is contained in:
parent
6625e5927e
commit
27ce5a4a92
3 changed files with 73 additions and 5 deletions
14
deploy.sh
Executable file
14
deploy.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
REMOTE="root@minifridge"
|
||||
REMOTE_DIR="/mnt/user/appdata/sheepflix"
|
||||
|
||||
echo "syncing to $REMOTE:$REMOTE_DIR..."
|
||||
rsync -avz --exclude '.git' --exclude 'testdata' --exclude 'sheepflix' \
|
||||
./ "$REMOTE:$REMOTE_DIR/"
|
||||
|
||||
echo "rebuilding on remote..."
|
||||
ssh "$REMOTE" "cd $REMOTE_DIR && docker compose up -d --build"
|
||||
|
||||
echo "done."
|
||||
Loading…
Add table
Add a link
Reference in a new issue