Question

I work on a website on multiple computers, my work and my home pc. The source is maintained under a git repository. I use Web Deploy to publish the website to IIS on the public server. Everything works OK, I can publish from both computers and it works.

The issue is that when I deploy from one PC, then go to the other, get the latest changes from git, make more changes, then deploy again, it re-deploys the entire website instead of only the files that have changed - as is what happens if I were to take out the "then go to the other, get the latest changes from git" steps from the first sentence of this paragraph.

What can I do, what files can I include in my git repository (I exclude all packages, bin and obj directories), or what extra configuration can I perform, to resolve this?

Was it helpful?

Solution

Add a repo on your public server, push to that, then deploy from there. The push will be minimal, git can be startlingly good with deltas.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top