From 83550a56a3c0c27798187a35904439ea29967cd5 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Tue, 7 May 2024 09:48:36 +1000 Subject: [PATCH] Set ownership during deploy --- bin/deploy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/deploy b/bin/deploy index 3650d866..823e27d7 100755 --- a/bin/deploy +++ b/bin/deploy @@ -8,6 +8,8 @@ set -x # Show output set -e cd /var/www/website sudo -u www-data git pull +sudo chown www-data:www-data . +sudo -E -u www-data /var/www/venv-website/bin/python3 -m pip install -r requirements.txt export DJANGO_SETTINGS_MODULE=conservancy.settings.prod sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py check sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py migrate