prod #123

Merged
finley merged 122 commits from prod into master 2025-11-22 17:52:40 -08:00
2 changed files with 12 additions and 11 deletions
Showing only changes of commit c73af8eef1 - Show all commits

View file

@ -94,15 +94,15 @@ EOF
#!/bin/bash
/home/cmc/restore_db_from_backup.sh
echo "Syncing PDF files..."
rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/
echo "Syncing attachments files..."
rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/
echo "Syncing emails..."
rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/
echo "Syncing vaultmsgs..."
rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/vaultmsgs/ /home/cmc/cmc-sales-staging/vault/vaultmsgs/
echo "Sync complete."
# echo "Syncing PDF files..."
# rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/pdf/ /home/cmc/cmc-sales-staging/app/webroot/pdf/
# echo "Syncing attachments files..."
# rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/attachments_files/ /home/cmc/cmc-sales-staging/app/webroot/attachments_files/
# echo "Syncing emails..."
# rsync -av --delete --omit-dir-times --no-perms --progress /mnt/vault/emails/ /home/cmc/cmc-sales-staging/vault/emails/
# echo "Syncing vaultmsgs..."
# rsync -av --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

View file

@ -26,6 +26,7 @@ services:
volumes:
- ./app/webroot/pdf:/var/www/cmc-sales/app/webroot/pdf
- ./app/webroot/attachments_files:/var/www/cmc-sales/app/webroot/attachments_files
- ./userpasswd:/etc/nginx/userpasswd:ro
networks:
- cmc-stg-network
restart: unless-stopped
@ -56,12 +57,12 @@ services:
DB_USER: cmc
DB_PASSWORD: xVRQI&cA?7AU=hqJ!%au
DB_NAME: cmc
PORT: 8082
PORT: 8080
depends_on:
db:
condition: service_started
ports:
- "8082:8082"
- "8082:8080"
volumes:
- ./go-app/.env.example:/app/.env
networks: