From dec69bbfba9f9da1c22892657b1f3512a5cc5138 Mon Sep 17 00:00:00 2001 From: csae8092 Date: Fri, 16 Feb 2024 10:26:26 +0100 Subject: [PATCH] load latest on file on startup --- download_files.sh | 3 ++- start-server.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/download_files.sh b/download_files.sh index 1cfa897..9ce2722 100755 --- a/download_files.sh +++ b/download_files.sh @@ -3,4 +3,5 @@ wget -O /opt/app/media/listevent.xml https://oeawcloud.oeaw.ac.at/index.php/s/DL wget -O /opt/app/media/listorg.xml https://oeawcloud.oeaw.ac.at/index.php/s/a5qCWqzCRnbRkMt/download/listorg.xml wget -O /opt/app/media/listbibl.xml https://oeawcloud.oeaw.ac.at/index.php/s/bwT4yWGdBeLkSP3/download/listbibl.xml wget -O /opt/app/media/listplace.xml https://oeawcloud.oeaw.ac.at/index.php/s/Kbnien5KfnPaFsK/download/listplace.xml -wget -O /opt/app/media/listperson.xml https://oeawcloud.oeaw.ac.at/index.php/s/sRyi2H54eaCiCXJ/download/listperson.xml \ No newline at end of file +wget -O /opt/app/media/listperson.xml https://oeawcloud.oeaw.ac.at/index.php/s/sRyi2H54eaCiCXJ/download/listperson.xml +wget -O /opt/app/media/relations.csv https://oeawcloud.oeaw.ac.at/index.php/s/2BWWMY8etP6tEj7/download/relations.csv \ No newline at end of file diff --git a/start-server.sh b/start-server.sh index ab8d596..3e3762e 100755 --- a/start-server.sh +++ b/start-server.sh @@ -6,4 +6,7 @@ touch /var/log/cron.log cron &&\ python manage.py migrate python manage.py collectstatic --no-input +./download_files.sh +python manage.py find_duplicated_persons +python manage.py find_duplicated_places gunicorn pmb.wsgi --user www-data --bind 0.0.0.0:8010 --workers 3 --timeout 600 & nginx -g "daemon off;" \ No newline at end of file