ConceptPortal-public/scripts/prod/UpdateProd.sh

13 lines
360 B
Bash
Raw Normal View History

2023-09-21 14:58:01 +03:00
COMPOSE_FILE="docker-compose-prod.yml"
BACKUP_SCRIPT="./scripts/prod/CreateBackup.sh"
2023-09-19 21:04:59 +03:00
git reset --hard
2023-08-14 23:16:01 +03:00
git pull
2023-09-21 14:58:01 +03:00
/bin/bash "${BACKUP_SCRIPT}"
docker compose --file "${COMPOSE_FILE}" up --build --detach
docker image prune --all --force
2023-09-22 23:30:28 +03:00
# Use this command to restart containers if something went wrong
# docker compose --file "docker-compose-prod.yml" restart