diff --git a/deploy/deploy-stg.sh b/deploy/deploy-stg.sh index 5a7b74c6..81017180 100755 --- a/deploy/deploy-stg.sh +++ b/deploy/deploy-stg.sh @@ -62,11 +62,11 @@ ENVEOF if [[ "$USE_CACHE" == "false" ]]; then echo "Building and starting docker compose for staging (no cache)..." docker compose -f docker-compose.stg.yml build --no-cache - docker compose -f docker-compose.stg.yml up -d + docker compose -f docker-compose.stg.yml up -d --remove-orphans else echo "Building and starting docker compose for staging (using cache)..." docker compose -f docker-compose.stg.yml build - docker compose -f docker-compose.stg.yml up -d + docker compose -f docker-compose.stg.yml up -d --remove-orphans fi echo "Checking running containers..." @@ -79,13 +79,13 @@ ENVEOF #!/bin/bash echo "Syncing PDF files..." -rsync -a --delete --omit-dir-times --no-perms /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/ +rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/ echo "Syncing attachments files..." -rsync -a --delete --omit-dir-times --no-perms /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/ +rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/ echo "Syncing emails..." -rsync -a --delete --omit-dir-times --no-perms /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/ +rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/ echo "Syncing vaultmsgs..." -rsync -a --delete --omit-dir-times --no-perms /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/ +rsync -a --delete --omit-dir-times --no-perms --progress /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/ echo "Sync complete." EOF chmod +x /home/cmc/sync_prod_to_staging.sh