Set ownership during deploy

This commit is contained in:
Ben Sturmfels 2024-05-07 09:48:36 +10:00
parent 6a8515358b
commit 83550a56a3
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -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