Set ownership during deploy
This commit is contained in:
parent
6a8515358b
commit
83550a56a3
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ set -x # Show output
|
||||||
set -e
|
set -e
|
||||||
cd /var/www/website
|
cd /var/www/website
|
||||||
sudo -u www-data git pull
|
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
|
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 check
|
||||||
sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py migrate
|
sudo -E -u www-data /var/www/venv-website/bin/python3 manage.py migrate
|
||||||
|
|
Loading…
Reference in a new issue