Minify all the HTML before rendering to reduce page weight
[books.alexwlchan.net] / scripts / deploy.sh
index dcd58fd..96ea720 100755 (executable)
@@ -4,7 +4,14 @@ set -o errexit
 set -o nounset
 set -o verbose
 
+git pull origin development
+
 python3 scripts/render_html.py
 
 rsync --archive --verbose --compress --delete \
   _html/ alexwlchan@helene.linode:sites/books.alexwlchan.net
+
+ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/static/*'
+ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/covers/*'
+ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/thumbnails/*'
+ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/**/*.html'