Switch from "restart apache2" to "reload apache2"

No need to do a full restart. Reload will be marginally faster.
This commit is contained in:
Ben Sturmfels 2024-03-16 09:07:11 +11:00
parent 84daddb4ff
commit cc424bb964
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -9,6 +9,6 @@ sudo -u www-data git pull
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
sudo systemctl restart apache2
sudo systemctl reload apache2
curl --silent --head https://sfconservancy.org | grep --perl-regexp "^HTTP/.+ 200"
EOF