From 48ae702a7803b4285376cfdf7f098b5248dd47cf Mon Sep 17 00:00:00 2001
From: Vermaas <vermaas@astron.nl>
Date: Tue, 10 Dec 2024 14:25:43 +0100
Subject: [PATCH] update script

---
 .../templates/taskdatabase/index.html          |  2 +-
 deploy_atdb_local_dev.sh                       | 18 ++++++++++++------
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index 1412da48..973a3092 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -31,7 +31,7 @@
             {% include 'taskdatabase/pagination.html' %}
         </div>
     </div>
-    <p class="footer"> Version 10 Dec 2024 - 14:16</p>
+    <p class="footer"> Version 10 Dec 2024 - 14:25</p>
 </div>
 
 {% include 'taskdatabase/refresh.html' %}
diff --git a/deploy_atdb_local_dev.sh b/deploy_atdb_local_dev.sh
index 2df8b81b..c777edf4 100644
--- a/deploy_atdb_local_dev.sh
+++ b/deploy_atdb_local_dev.sh
@@ -1,10 +1,16 @@
 #!/usr/bin/bash
 
 export ATDB_DIR=$HOME/my_docker/atdb-ldv
-cd $ATDB_DIR
-git pull
 
-# 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
+while true; do
+    cd $ATDB_DIR
+    git pull
+
+    # 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
+
+    sleep 60  # Wait for 1 minute before the next iteration
+
+done
\ No newline at end of file
-- 
GitLab