From cc424bb96487fab9198c271350dee66bdaa16c04 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Sat, 16 Mar 2024 09:07:11 +1100 Subject: [PATCH] Switch from "restart apache2" to "reload apache2" No need to do a full restart. Reload will be marginally faster. --- bin/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/deploy b/bin/deploy index dd2cb145..6fa5a89c 100755 --- a/bin/deploy +++ b/bin/deploy @@ -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