diff --git a/states/roles/maintain/laradev/git_branches.sh b/states/roles/maintain/laradev/git_branches.sh index 0f98bac..12fd912 100644 --- a/states/roles/maintain/laradev/git_branches.sh +++ b/states/roles/maintain/laradev/git_branches.sh @@ -32,7 +32,8 @@ echo " $branch
" >> /sites/{{project}}/index.php cd "$branch" git fetch --all git reset --hard origin/$branch - chown http:http -R "$branch" + chown http:http -R ./ + su -s /bin/bash http -c "composer update" su -s /bin/bash http -c "composer install" php artisan migrate cd "/sites/{{project}}"