Skip to content
Snippets Groups Projects
Commit 0767fd83 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

add deploy_local_dev.sh script

parent c6e0e191
Branches
No related tags found
No related merge requests found
......@@ -2,10 +2,17 @@
# be in an existing git cloned atdb-ldv directory (like $HOME/my_docker/atdb-ldv)
git pull
# 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 .
cd docker
docker-compose -f docker/docker-compose-dev-local.yml -p atdb up -d
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment