Im trying to set up deployment from my local GIT to my Azure Web App using this guide https://docs.microsoft.com/en-us/azure/app-service/app-service-deploy-local-git
It is pretty straight forward, but I have some issues. This approach deploy my whole repository to the root, and I do not want that.
My Web App is using a CMS, which mean that a lot of files in the Web App is not in my git repo. And also some files in my git repo is not and should not be present in my Web App.
Lets say my Web App looks like this.
- Root
- Site
- System
- Images
- Templates
- Site
System and Images are not in my git, but Templates are.
This is how my git looks like.
- Custom code
- Templates
So when I go ahead and push changes both my Templates and Custom code are deployed into the Root of the Web App.
That is wrong in two ways. First of all I only want to deploy changes in the Templates folder. Second of all I want to deploy the changes into the Site folder not Root.
Is it possible to fix this in some way?