From 759f57aa0c5d55295b67a4cdafdde5438a28d7de Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 27 Jan 2025 21:15:22 +0700 Subject: [PATCH] fix blackhole deployment --- deploy.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 10c8e0d1..86b9af1d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -18,20 +18,24 @@ set -e function sync_blackhole { - host="blackhole.local" + host="blackhole.lan" rsync -a --progress --delete-after \ --exclude ".git" \ --exclude ".gitignore" \ --exclude "**/cache" \ --exclude "**/__pycache__/" \ + --exclude "**/.pytest_cache/" \ + --exclude "**/static/" \ + --exclude "**/node_modules/" \ + --exclude "**/.env" \ --exclude ".venv" \ --exclude "db.sqlite3" \ --exclude ".mypy_cache" \ . -e ssh "$host":tubearchivist - ssh "$host" 'docker build -t bbilly1/tubearchivist --build-arg TARGETPLATFORM="linux/amd64" tubearchivist' - ssh "$host" 'docker compose up -d' + ssh "$host" 'docker build -t bbilly1/tubearchivist:unstable tubearchivist' + ssh "$host" 'docker compose up -d -f docker/docker-compose.yml' }