Skip to content

Commit

Permalink
Merge pull request #70 from arthur-schnitzler/154-fetch-latest-dumps-…
Browse files Browse the repository at this point in the history
…on-restart

load latest dumps on startup
  • Loading branch information
csae8092 authored Feb 16, 2024
2 parents a20cbba + dec69bb commit c7513f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion download_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
3 changes: 3 additions & 0 deletions start-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;"

0 comments on commit c7513f5

Please sign in to comment.