URL!
[books.alexwlchan.net] / scripts / deploy.sh
1 #!/usr/bin/env bash
2
3 set -o errexit
4 set -o nounset
5 set -o verbose
6
7 git pull origin development
8
9 python3 scripts/render_html.py
10
11 rsync --archive --verbose --compress --delete \
12   _html/ alexwlchan@helene.linode:sites/books.alexwlchan.net
13
14 ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/static/*'
15 ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/covers/*'
16 ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/thumbnails/*'
17 ssh alexwlchan@helene.linode 'chmod 644 ~/sites/books.alexwlchan.net/**/*.html'