diff --git a/roles/live2dev/templates/cron.j2 b/roles/live2dev/templates/cron.j2 index 07cbb55a82cc21e36f4fab7c33e660075ec3e89c..b1e770b2e0887d5c4545c0dd8b52214e9224d0e9 100644 --- a/roles/live2dev/templates/cron.j2 +++ b/roles/live2dev/templates/cron.j2 @@ -13,6 +13,9 @@ fi cd ~/sites +# Remove any untracked files/directories +git clean -fd + GIT_PULL=$(git pull | grep -v "up-to-date") if [[ ${GIT_PULL} != "" ]]; then diff --git a/roles/live2dev/templates/update.j2 b/roles/live2dev/templates/update.j2 index 5bee84e2ff816803809606e7814f1ae1e064b008..a77ff293bf2a878452e55a05ba85af24fcd69d7a 100644 --- a/roles/live2dev/templates/update.j2 +++ b/roles/live2dev/templates/update.j2 @@ -15,7 +15,7 @@ cd /home/{{ item }}/sites git stash save "Local changes stashed" git pull rm -rf web/wp -composer update +composer install cd web/app/themes/coop-tech-oowp-theme composer update npm install