2024-02-23 04:35:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-02-26 22:43:07 +00:00
|
|
|
git push
|
2024-02-23 04:35:55 +00:00
|
|
|
ssh debian@hickory.sfconservancy.org 'bash -s' << EOF
|
|
|
|
set -x # Show output
|
|
|
|
set -e # Abort on failure
|
|
|
|
cd /var/www/website
|
|
|
|
sudo -u www-data git pull
|
2024-03-13 03:26:01 +00:00
|
|
|
sudo -u www-data /var/www/venv-website/bin/python3 manage.py check
|
|
|
|
sudo -u www-data /var/www/venv-website/bin/python3 manage.py migrate
|
|
|
|
sudo -u www-data /var/www/venv-website/bin/python3 manage.py collectstatic -v0 --noinput --link
|
2024-03-15 22:07:11 +00:00
|
|
|
sudo systemctl reload apache2
|
2024-02-23 04:35:55 +00:00
|
|
|
curl --silent --head https://sfconservancy.org | grep --perl-regexp "^HTTP/.+ 200"
|
|
|
|
EOF
|