diff --git a/deploy_atdb_local_dev.sh b/deploy_atdb_local_dev.sh index 7c0dfe973cffbc47a279fce90d5ae9da700b27f7..2df8b81bf510efebfc8d725431bfbd165ebcb59b 100644 --- a/deploy_atdb_local_dev.sh +++ b/deploy_atdb_local_dev.sh @@ -2,22 +2,9 @@ export ATDB_DIR=$HOME/my_docker/atdb-ldv cd $ATDB_DIR +git pull -# be in an existing git cloned atdb-ldv directory (like $HOME/my_docker/atdb-ldv) - -# Pull the latest changes and capture the output -OUTPUT=$(git pull) - -# Check if there are any changes pulled -if [[ $OUTPUT == *"Already up to date."* ]]; then - echo "No changes detected. Skipping redeploy." -else - echo "Changes detected. Proceeding with redeploy." - - # Proceed with build and redeploy - cd atdb - docker build -t atdb-ldv:latest . - docker-compose -f docker/docker-compose-dev-pull-local.yml -p atdb up -d - - echo "ATDB-lDV deployed." -fi \ No newline at end of file +# Proceed with build and redeploy, this only does something when new changes were detected by the git pull +cd atdb +docker build -t atdb-ldv:latest . +docker-compose -f docker/docker-compose-dev-pull-local.yml -p atdb up -d