From 36d1493b0ce7c2300e9fc3344aac7df23443f166 Mon Sep 17 00:00:00 2001 From: kthoden Date: Mon, 9 Mar 2020 14:06:30 +0100 Subject: [PATCH] Two new scripts (and some markup) --- README.md | 10 ++++++---- pulldjango.sh | 9 +++++++++ updatestatic.sh | 7 +++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 pulldjango.sh create mode 100644 updatestatic.sh diff --git a/README.md b/README.md index 15f26df..c4c3e8d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # Various small files -* TeXShopShortcuts.plist is a selection of shortcuts for TeXShop -* jsonfixer.py: Convert fixtures with embededd EOA1.0 design to embedded EOA2.0 design. -* showpickle.py: Pretty print contents of pickle file -* eoa.rc: Some useful shell functions. Source them from your shell rc file. Only tested on zsh. +* `TeXShopShortcuts.plist` is a selection of shortcuts for TeXShop +* `jsonfixer.py`: Convert fixtures with embededd EOA1.0 design to embedded EOA2.0 design. +* `showpickle.py`: Pretty print contents of pickle file +* `eoa.rc`: Some useful shell functions. Source them from your shell rc file. Only tested on zsh. +* `pulldjango.sh`: Create static versions using `wget`. +* `updatestatic.sh`: Write files to where the webserver finds them. diff --git a/pulldjango.sh b/pulldjango.sh new file mode 100644 index 0000000..92fb1df --- /dev/null +++ b/pulldjango.sh @@ -0,0 +1,9 @@ +#!/usr/bin/zsh + +wget -P /home/kthoden/static/eoa --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9005 +wget -P /home/kthoden/static/eos --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9010 +python3 /home/kthoden/src/eoa_makestatic/makestatic.py /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010 +wget -P /home/kthoden/static/mprl --mirror --convert-links --adjust-extension --page-requisites --no-parent http://eoa2-production.mpiwg-berlin.mpg.de:9015 +python3 /home/kthoden/src/eoa_makestatic/makestatic.py /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015 + +echo Finito diff --git a/updatestatic.sh b/updatestatic.sh new file mode 100644 index 0000000..8a6be32 --- /dev/null +++ b/updatestatic.sh @@ -0,0 +1,7 @@ +#!/usr/bin/zsh + +sudo rsync -Pazy /home/kthoden/static/eoa/eoa2-production.mpiwg-berlin.mpg.de:9005/ /var/www/eoa/html +sudo rsync -Pazy --exclude index-bak.html /home/kthoden/static/eos/eoa2-production.mpiwg-berlin.mpg.de:9010/ /var/www/eos/html +sudo rsync -Pazy --exclude index-bak.html /home/kthoden/static/mprl/eoa2-production.mpiwg-berlin.mpg.de:9015/ /var/www/mprl/html + +echo Finito