Skip to content

Commit

Permalink
Fix update.sh.j2
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Sep 4, 2023
1 parent 157d27b commit 8533685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/ansible/roles/webapp/templates/update.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ fi
cd galaxy-content-site
source '{{ venv_root }}/bin/activate'
git pull

# Migrate the database (if necessary)
cd webapp
python manage.py migrate

# Collect any new static files for Nginx if neccessary
python manage.py collectstatic --noinput

# Migrate the database (if necessary)
python manage.py migrate

# Update file ownership to allow www-data to write logs/media
sudo chown -R www-data:www-data webapp/logs
sudo chown -R www-data:www-data webapp/media
Expand Down

0 comments on commit 8533685

Please sign in to comment.