Removing file sync from script, changing ports

This commit is contained in:
Finley Ghosh 2025-07-23 22:16:27 +10:00
parent 44d444503f
commit c73af8eef1
2 changed files with 12 additions and 11 deletions

View file

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

View file

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