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