From 853368557b2eb664d7b02bf565fc4385d6fd1994 Mon Sep 17 00:00:00 2001 From: Cameron Hyde Date: Mon, 4 Sep 2023 13:15:10 +1000 Subject: [PATCH] Fix update.sh.j2 --- deploy/ansible/roles/webapp/templates/update.sh.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/ansible/roles/webapp/templates/update.sh.j2 b/deploy/ansible/roles/webapp/templates/update.sh.j2 index 75eb1cdb..4583a2eb 100644 --- a/deploy/ansible/roles/webapp/templates/update.sh.j2 +++ b/deploy/ansible/roles/webapp/templates/update.sh.j2 @@ -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