From d8c3f62055ed0e89130faa7b1a94d9e29d8071c7 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 22 Dec 2022 10:49:43 +0700 Subject: [PATCH] single step production build --- deploy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 7e85266..84cb91f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -24,9 +24,7 @@ function docker_publish { rsync -a --progress --delete helper_scripts $public_host: rsync -a --progress --delete builder/ $public_host:builder ssh "$public_host" "mkdir -p builder/clone" - - ssh "$public_host" 'docker compose -f docker/docker-compose.yml build tubearchivist' - ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d' + ssh "$public_host" 'docker compose -f docker/docker-compose.yml up -d --build' } # check package versions in requirements.txt for updates